Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add junit report #1309

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,17 @@ jobs:
- name: Test (with coverage)
run: pnpm test:coverage

- name: Test (with report)
run: pnpm test:report

- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ coverage

ts-build-cache
tsconfig.tsbuildinfo

junit.xml
2 changes: 1 addition & 1 deletion commitlint.config.js → commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: ['@commitlint/config-conventional'],
parserPreset: {
parserOpts: {
Expand Down
2 changes: 1 addition & 1 deletion lint-staged.config.js → lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
'*': [
'biome check', // Format, sort imports, lint, and apply safe fixes
],
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
"biome:fix": "biome lint --write",
"format": "biome format --write",
"lint": "biome lint",
"prerelease": "cross-env NODE_ENV=production pnpm auth && pnpm build",
"prerelease": "pnpm auth && pnpm build",
"release": "changeset publish",
"setup": "husky install && preconstruct dev && manypkg check && check-node-version --package --print",
"test:coverage": "cross-env NODE_ENV=test npm test -- --coverage",
"test": "cross-env NODE_ENV=test vitest run",
"test:coverage": "vitest --coverage",
"test:report": "vitest --reporter=junit --outputFile=junit.xml",
"test": "vitest",
"typecheck": "tsc --build"
},
"author": "Tobias Deekens <[email protected]>",
Expand Down Expand Up @@ -59,7 +60,6 @@
"@types/semver": "7.5.8",
"@vitest/coverage-v8": "2.1.5",
"check-node-version": "4.2.1",
"cross-env": "7.0.3",
"husky": "9.0.11",
"lint-staged": "15.2.10",
"rimraf": "5.0.10",
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

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