Skip to content

Commit

Permalink
Added frontend test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 20, 2022
1 parent e255b27 commit e217169
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ jobs:
run: |
npm run test
- name: "Upload coverage results"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -s coverage
collector-lint:
name: "Lint collector"
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!react-markdown)/\"",
"test": "react-scripts test --coverage --transformIgnorePatterns \"node_modules/(?!react-markdown)/\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down

0 comments on commit e217169

Please sign in to comment.