Skip to content

Commit

Permalink
fix: attempt to fix storybook coverage on codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Sep 12, 2022
1 parent 9b521ee commit e6b5b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ jobs:
- name: Run unit tests with coverage
run: npm run test:unit:coverage

- name: Generate nyc coverage report
id: coverage
run: npx nyc report --reporter=lcov

- uses: codecov/codecov-action@v3
with:
flags: unit_tests # optional
name: unit-coverage # optional
file: ./coverage/storybook/coverage-storybook.json
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009",
"build-storybook": "build-storybook",
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"build-storybook --quiet && http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && test-storybook --coverage\" && npx nyc merge coverage/storybook/ .nyc_output/storybook.json",
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"build-storybook --quiet && http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && test-storybook --coverage\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down

0 comments on commit e6b5b5b

Please sign in to comment.