Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Add test summary (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ertrzyiks authored Oct 9, 2022
1 parent 4a25b9d commit b028320
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
- run: yarn install --immutable --immutable-cache
- run: yarn test:ci

- name: Test Summary
if: always()
uses: test-summary/action@v1
with:
paths: |
junit.xml
e2e:
runs-on: ubuntu-latest

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ jspm_packages/
# OS X temporary files
.DS_Store

# jest report
junit.xml

apps/blog/.cache
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"blog": "yarn workspace blog",
"cms": "yarn workspace cms",
"test:ci": "jest",
"test:ci": "jest --ci --reporters=default --reporters=jest-junit",
"test:e2e:ci": "yarn workspace e2e test:e2e:ci",
"test:visual:ci": "yarn workspace e2e test:visual",
"postinstall": "husky install",
Expand All @@ -27,6 +27,7 @@
"babel-preset-gatsby": "2.4.0",
"husky": "7.0.4",
"jest": "27.4.5",
"jest-junit": "^14.0.1",
"lint-staged": "12.5.0",
"prettier": "2.7.1"
},
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23875,6 +23875,18 @@ __metadata:
languageName: node
linkType: hard

"jest-junit@npm:^14.0.1":
version: 14.0.1
resolution: "jest-junit@npm:14.0.1"
dependencies:
mkdirp: ^1.0.4
strip-ansi: ^6.0.1
uuid: ^8.3.2
xml: ^1.0.1
checksum: 2a9ccfecbe4c0df1be24e64b3e12a260356db999b3d821578c325bd34367d2f54b27e9560a8d5abe6c19412400268bf55dd41473565903cb8f616d998f7eb9ac
languageName: node
linkType: hard

"jest-leak-detector@npm:^27.4.2":
version: 27.4.2
resolution: "jest-leak-detector@npm:27.4.2"
Expand Down Expand Up @@ -38834,6 +38846,7 @@ __metadata:
babel-preset-gatsby: 2.4.0
husky: 7.0.4
jest: 27.4.5
jest-junit: ^14.0.1
lint-staged: 12.5.0
prettier: 2.7.1
languageName: unknown
Expand Down

0 comments on commit b028320

Please sign in to comment.