Skip to content

Commit 7a9b3bb

Browse files
committed
ci: add jest-junit reporting
1 parent 90ff8be commit 7a9b3bb

File tree

6 files changed

+41
-10
lines changed

6 files changed

+41
-10
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ updates:
1919
- "@swc/jest"
2020
- "@types/jest"
2121
- "jest"
22+
- "jest-junit"
2223
lerna-lite:
2324
patterns:
2425
- "@lerna-lite/*"

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: pnpm install --frozen-lockfile
5757

5858
- name: Run tests
59-
run: pnpm test
59+
run: pnpm -r test --ci --reporters=default --reporters=github-actions --reporters=jest-junit
6060

6161
- name: Upload test results to Codecov
6262
uses: codecov/test-results-action@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
node_modules/
66
docs/
77
coverage/
8+
junit.xml
89

910
clients/**/dist
1011
packages/**/dist

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"build": "turbo run build",
1010
"clean": "turbo run clean",
1111
"check:ts": "turbo run check:ts",
12-
"test": "turbo run test",
1312
"codegen": "tsx --tsconfig codegen/tsconfig.json codegen/generate.ts",
1413
"predocs": "turbo run build --filter=@sp-api-sdk/common",
1514
"docs": "typedoc"
@@ -24,6 +23,7 @@
2423
"conventional-changelog-conventionalcommits": "^9.1.0",
2524
"eslint-config-xo-bizon": "^3.0.3",
2625
"jest": "^30.2.0",
26+
"jest-junit": "^16.0.0",
2727
"rimraf": "^6.0.1",
2828
"ts-node": "^10.9.2",
2929
"tsx": "^4.20.6",

pnpm-lock.yaml

Lines changed: 37 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
4-
"test": {
5-
"dependsOn": ["^build"]
6-
},
74
"clean": {
85
"cache": false,
96
"outputs": []

0 commit comments

Comments
 (0)