From 299d985781e597ee927a0709eac81617e827e202 Mon Sep 17 00:00:00 2001 From: Aubrey Quinn Date: Fri, 27 Sep 2024 21:09:02 +0100 Subject: [PATCH] added coveralls to project --- .github/workflows/code-coverage.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/code-coverage.yml diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml new file mode 100644 index 0000000..8100248 --- /dev/null +++ b/.github/workflows/code-coverage.yml @@ -0,0 +1,38 @@ +name: Coveralls GitHub Action + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + test_number: + - 1 + - 2 + steps: + - uses: actions/checkout@3 + - name: Use Node.js 16.x + uses: actions/setup-node@3 + with: + node-version: 16.x + + - name: npm install + run: npm install + + - name: Test ${{ matrix.test_number }} + run: make test-coverage-${{ matrix.test_number }} + - name: Coveralls Parallel + uses: coverallsapp/github-action@v2 + with: + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true + + 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"