Skip to content

Commit

Permalink
test: merge lcov files
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Sep 17, 2023
1 parent 6908899 commit e684b34
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 81 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
directory: ./coverage
files: ./coverage/lcov.info

- name: Upload Code Climate Test Coverage
uses: paambaati/codeclimate-action@v5.0.0
Expand All @@ -61,8 +61,7 @@ jobs:
with:
debug: true
coverageLocations: |
${{github.workspace}}/coverage/ssr-tests/*.info:lcov
${{github.workspace}}/coverage/storybook/*.info:lcov
${{github.workspace}}/coverage/lcov.info:lcov
- uses: preactjs/compressed-size-action@v2
with:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
"start": "pnpm run dev",
"build": "pnpm run check:types && NODE_ENV=production tsup",
"release": "pnpm run lint && pnpm run test && pnpm run build && pnpm run check && np --no-tests --no-cleanup",
"test": "rm -rf coverage && concurrently -n \"ssr,sb\" -c \"magenta,blue\" \"pnpm run test:ssr\" \"pnpm run test:storybook\"",
"test": "rm -rf coverage && concurrently -n \"ssr,sb\" -c \"magenta,blue\" \"pnpm run test:ssr\" \"pnpm run test:storybook\" && pnpm run test:merge-coverage",
"test:ci": "concurrently -k -s first -n \"sb,test\" -c \"magenta,blue\" \"pnpm run --filter @this/storybook storybook:build --quiet && pnpm sirv ./docs/storybook/storybook-static --host 127.0.0.1 --port 6006\" \"pnpm wait-port 6006 && pnpm run test\"",
"test:ssr": "pnpm c8 -o ./coverage/ssr-tests -r text -r lcov node --test ./docs/ssr-tests/ssr.test.mjs",
"test:storybook": "pnpm --filter @this/storybook run test:coverage && pnpm nyc report --reporter=lcov -t ./docs/storybook/coverage/storybook --report-dir ./coverage/storybook",
"test:merge-coverage": "lcov-result-merger './coverage/*/lcov.info' ./coverage/lcov.info",
"check": "concurrently -n \"package,types\" -c \"blue,magenta\" \"pnpm run check:package\" \"pnpm run check:types\"",
"check:package": "attw -P . --ignore-rules cjs-resolves-to-esm",
"check:types": "tsc --noEmit",
Expand Down Expand Up @@ -120,6 +121,7 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lcov-result-merger": "^4.1.0",
"lint-staged": "^14.0.1",
"np": "^8.0.4",
"nyc": "^15.1.0",
Expand Down
95 changes: 18 additions & 77 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e684b34

Please sign in to comment.