diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06fa8d1..42ae2ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ permissions: concurrency: group: ci-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: # The job id "ci" is the required status check on main (see mgpl-diagnostics/.github scripts/protect-repos.mjs). @@ -28,10 +28,7 @@ jobs: REQUIRE_REDIS: "1" steps: - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 - with: - node-version: 22 - - run: npm install --no-package-lock + - uses: mgpl-diagnostics/.github/actions/node@main - run: npm run typecheck - name: Tests (definitions, data rules, in-process, fallback, BullMQ on Redis with the same scenario) run: npm test