From 92d34224fa2901c714e00d51d7cf33103016b54f Mon Sep 17 00:00:00 2001 From: Rishi Kumar <1720744+mrrishimeena@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:22:16 +0530 Subject: [PATCH] test: code coverage --- .github/workflows/.code-coverage-test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/.code-coverage-test.yml diff --git a/.github/workflows/.code-coverage-test.yml b/.github/workflows/.code-coverage-test.yml new file mode 100644 index 0000000..a410781 --- /dev/null +++ b/.github/workflows/.code-coverage-test.yml @@ -0,0 +1,21 @@ +name: Code Coverage Test + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '18.x' + - run: npm install + - run: npm test -- --coverage + - run: npm install coveralls --save-dev + - run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_POSTGRES_TOKEN }}