From ff15052d545902c14b2621ab1656a70447bc5b7e Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Mon, 12 Sep 2022 15:41:20 -0700 Subject: [PATCH] fix: attempt to fix storybook coverage on codecov --- .github/workflows/test-unit.yml | 5 +---- package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index f0331bb5a..98cff04f6 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -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) diff --git a/package.json b/package.json index 50eb07636..76c54ca6b 100644 --- a/package.json +++ b/package.json @@ -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": {