Skip to content

try to fix coveralls from complaining about already closed build #443

try to fix coveralls from complaining about already closed build

try to fix coveralls from complaining about already closed build #443

Workflow file for this run

name: Node CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, and test
run: |
npm ci
npm test
env:
CI: true
- name: Generate coverage
if: success()
run: |
mkdir coverage
npm run coverage
env:
CI: true
- name: Coveralls Parallel
if: success()
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel: true
flag-name: ${{ matrix.node-version }}
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true