Skip to content

Commit

Permalink
configure coverage and codecov (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
siavol authored Oct 7, 2024
1 parent eaee227 commit 3b79ba9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,18 @@ jobs:
run: npm run lint

- name: Run tests
run: npm test
run: npm run test:coverage

- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Build app
env:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"build:check-envs": "node ./check-env-vars",
"build:app": "react-scripts build",
"test": "react-scripts test",
"test:coverage": "react-scripts test --coverage",
"eject": "react-scripts eject",
"lint": "eslint ."
},
Expand Down

0 comments on commit 3b79ba9

Please sign in to comment.