Skip to content

Commit

Permalink
Create code-coverage-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrishimeena authored Oct 17, 2024
1 parent 0a5b0e5 commit 2cac741
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/code-coverage-test.yml
Original file line number Diff line number Diff line change
@@ -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_ERRSOLE_TEST_TOKEN }}

0 comments on commit 2cac741

Please sign in to comment.