From 95bb2e297ad5f3e2fc0de2fe4084b35d74afa5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DraugSk=C3=B6ll?= Date: Thu, 16 Jan 2025 05:52:14 +0100 Subject: [PATCH] Update workflows --- .github/workflows/tests coveralls.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/tests coveralls.yml diff --git a/.github/workflows/tests coveralls.yml b/.github/workflows/tests coveralls.yml new file mode 100644 index 000000000..4ba0eebae --- /dev/null +++ b/.github/workflows/tests coveralls.yml @@ -0,0 +1,40 @@ +on: ["push", "pull_request"] + +name: Test Coveralls Parallel + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + test_number: + - 1 + - 2 + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + 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" \ No newline at end of file