Skip to content

Commit

Permalink
ci/cd: added github actions for test and code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-shuvo committed Oct 21, 2022
1 parent af99d8e commit 2c2bf94
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node 18
uses: actions/setup-node@v3
# uses: actions/checkout@v2
# - name: Set up Node 18
# uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Install dependencies
# run: npm install
# - name: Run tests and collect coverage
# run: npm run test -- --coverage
# steps:
- uses: actions/checkout@v3
- name: Code coverage-reporter
uses: tj-actions/coverage-reporter@v5.1
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Run tests and collect coverage
run: npm run test -- --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
coverage-command: "nyc --reporter=text mocha --exclude='fixtures' __tests__/*.js"

0 comments on commit 2c2bf94

Please sign in to comment.