From 4f0571f7b59093e67fad48d64524fdd15dd58d10 Mon Sep 17 00:00:00 2001 From: Paul Boocock Date: Tue, 20 Oct 2020 15:05:16 +0100 Subject: [PATCH] Update coveralls github action with improved parallel build support (close #76) --- .github/workflows/build.yml | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e62202..8d124e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,28 +25,23 @@ jobs: - run: npm ci - run: npm run build - - run: npm test - - coverage: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Use Node.js 12.x - uses: actions/setup-node@v1 - with: - node-version: 12.x - - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - run: npm ci - run: npm run test+coverage - name: Coveralls + continue-on-error: true uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }} + flag-name: run-${{ matrix.node-version }} + parallel: true + + coverage: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Coveralls Finish + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true \ No newline at end of file