From 90501844dd903024291ade2fcc40d3acfa284ed7 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Mon, 22 Jan 2024 12:03:06 +0700 Subject: [PATCH] Fix CI issue with coverall --- .github/workflows/ci-test.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 470fbe52..dc621504 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -31,10 +31,13 @@ jobs: npm run build --if-present npm run test - - name: Report Coveralls + - name: Test ${{ matrix.test_number }} + run: make test-coverage-${{ matrix.test_number }} + - name: Coveralls Parallel uses: coverallsapp/github-action@v2 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true - name: cache node modules uses: actions/cache@v3 @@ -43,3 +46,14 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- + + finish: + needs: test + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true + carryforward: "run-1,run-2"