Regression test suite without nested waitFor #2353
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 19 * * *" | |
| concurrency: # Cancel stale PR builds (but not push builds) | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| #- ubuntu-latest | |
| #- macos-15-intel | |
| # https://github.com/nim-lang/setup-nimble-action/issues/13 | |
| # - macos-latest | |
| - windows-latest | |
| #uncomment to run 20 dup jobs in parallel. Useful for debugging race conds; better run one os only | |
| #attempt: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] | |
| name: CI / ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CACHE_NONCE: "20260914" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Nimble | |
| uses: nim-lang/setup-nimble-action@v1 | |
| with: | |
| nimble-version: "latest" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Restore nimble dependencies from cache | |
| id: nimble_deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: nimbledeps | |
| key: nimble-deps-${{ env.CACHE_NONCE }}-${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}-${{ hashFiles('**/nimble.lock') }} | |
| - name: Install dependencies | |
| shell: bash | |
| run: nimble -yl install -d | |
| #- name: Bootstrap nim track toolchain | |
| # shell: bash | |
| # working-directory: tests/projects/trackproject | |
| # run: nimble -yl setup | |
| - name: Nimble Test | |
| shell: bash | |
| run: nimble test | |
| - name: Package dir state on failure | |
| if: failure() | |
| shell: bash | |
| run: ls -la ~/.nimble/pkgs2 ~/.nimble/nimbinaries nimbledeps/pkgs2 || true | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check `nph` formatting | |
| uses: arnetheduck/nph-action@v1 | |
| with: | |
| version: 0.7.0 | |
| options: "*.nim protocol" | |
| fail: true | |
| suggest: true |