From 6d572231905b09589caaffdd17c5321e0f50ff9b Mon Sep 17 00:00:00 2001 From: MRH <40269565+mohammadrezahayati@users.noreply.github.com> Date: Sat, 17 Jun 2023 20:54:33 +0330 Subject: [PATCH] Create coveralls.yml --- .github/workflows/coveralls.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/coveralls.yml 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 }}