From 02e2ecba6ba4820ec482d8962893e219eae08333 Mon Sep 17 00:00:00 2001 From: rejas Date: Sun, 26 Sep 2021 15:54:19 +0200 Subject: [PATCH] Try other coverage action style --- .github/workflows/node-ci.js.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/node-ci.js.yml b/.github/workflows/node-ci.js.yml index d10bb79..55900bd 100644 --- a/.github/workflows/node-ci.js.yml +++ b/.github/workflows/node-ci.js.yml @@ -30,14 +30,27 @@ jobs: run: | npm ci npm test + npm run coverage - on-success: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - - run: | - npm run coverage - - name: Coveralls + # Run the coveralls action which uploads the + # lcov.info file + - name: Coveralls Parallel uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.github_token }} + flag-name: run-${{ matrix.node }} + # This is a parallel build so need this + parallel: true + + # As testing against multiple versions need this to + # finish the parallel build + finish: + name: Coveralls coverage + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true