diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 0000000..d26ce07 --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,28 @@ +# save as ./github/workflows/git-build.yml +# make sure that 'test-coverage' generates the coverage reports (lcov) + +name: git-build + +on: + [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run test-coverage + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }}