Skip to content

Commit

Permalink
chore(ci): try out code cov test results reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 27, 2024
1 parent 35119b8 commit e89fb6f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: codecov/test-results-action@v1
with:
files: ./packages/elements-react/test-results/junit.xml
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions packages/elements-react/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
JEST_JUNIT_CLASSNAME="{filepath}"
JEST_JUNIT_OUTPUT_FILE="packages/elements-react/test-results/junit.xml"
1 change: 1 addition & 0 deletions packages/elements-react/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ playwright/.cache/
playwright-report/*
.last-run.json
api-report/temp
test-results/
1 change: 1 addition & 0 deletions packages/elements-react/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export default {
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
coverageDirectory: "../../coverage/packages/elements-react",
coveragePathIgnorePatterns: ["/node_modules/", "/dist/", ".svg"],
reporters: ["default", "jest-junit"],
} satisfies Config
1 change: 1 addition & 0 deletions packages/elements-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@types/lodash.merge": "4.6.9",
"esbuild-plugin-svgr": "3.0.0",
"eslint-plugin-react": "7.37.1",
"jest-junit": "16.0.0",
"postcss": "8.4.47",
"tsup": "8.3.0"
},
Expand Down

0 comments on commit e89fb6f

Please sign in to comment.