From 0ad8e032f1b4a1d8da03d443c5fcc22f03776075 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Mon, 11 Nov 2024 12:59:21 +0100 Subject: [PATCH] chore: only collect coverage on latest Node.js version Signed-off-by: Jon Koops --- .github/workflows/main.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b16bd7..001d820 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,20 +71,13 @@ jobs: run: npm ci - name: Run tests + if: matrix.node-version != 22 run: npm test -- --coverage - - name: Collect coverage - uses: coverallsapp/github-action@v2 - with: - flag-name: run-${{ join(matrix.*, '-') }} - parallel: true + - name: Run tests with coverage + if: matrix.node-version == 22 + run: npm test -- --coverage - coverage: - name: Publish coverage - needs: test - runs-on: ubuntu-latest - steps: - - name: Publish coverage + - name: Collect coverage + if: matrix.node-version == 22 uses: coverallsapp/github-action@v2 - with: - parallel-finished: true