Skip to content

Commit

Permalink
test: add junit report
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeekens committed Nov 27, 2024
1 parent 443d6e6 commit 62aafdb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
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
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
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
9 changes: 5 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 All @@ -26,6 +27,7 @@
"npm": ">=10",
"pnpm": ">=9"
},
"type": "module",
"bugs": {
"url": "https://github.com/tdeekens/promster/issues"
},
Expand Down Expand Up @@ -59,7 +61,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.

0 comments on commit 62aafdb

Please sign in to comment.