Skip to content

Commit

Permalink
👷 Change how coverage is reported in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 committed Dec 11, 2024
1 parent a58d638 commit 0636b34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: bunx playwright install --with-deps

- name: "Check coverage"
run: bun run test:coverage-ci
run: bun run test:coverage-report

- name: 'Report Coverage'
# Set if: always() to also generate the report if tests are failing
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"pretty:fix": "prettier --write ./config ./src ./.storybook",
"lint": "eslint ./src ./.storybook",
"lint:fix": "eslint ./src ./.storybook --fix",
"test": "vitest watch -w vitest.workspace.ts",
"test:ci": "CI=true vitest run -w vitest.workspace.ts",
"test:coverage": "vitest run --coverage -w vitest.workspace.ts",
"test:coverage-ci": "CI=true vitest run --coverage --coverage.reporter=json --coverage.reporter=json-summary --silent -w vitest.workspace.ts",
"test": "vitest watch",
"test:ci": "CI=true vitest run",
"test:coverage": "vitest run --coverage",
"test:coverage-ci": "CI=true vitest run --coverage --coverage.reporter=json --coverage.reporter=json-summary --silent",
"test:coverage-report": "CI=true vitest run --coverage --coverage.reporter=json --browser.name=chromium --coverage.reporter=json-summary --silent",
"build": "npm run build-components",
"build-components": "rollup -c && tsc --project tsconfig.build.json && resolve-tspaths --project tsconfig.build.json",
"build-and-use": "node tooling/build-and-use.mjs",
Expand Down

0 comments on commit 0636b34

Please sign in to comment.