Skip to content

Commit

Permalink
added test reporter
Browse files Browse the repository at this point in the history
Used to improve the readability of the action tests
  • Loading branch information
Bullrich committed Jan 29, 2024
1 parent 4bd69c4 commit dcdf564
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/javascript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn run test
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: JEST Tests
path: jest-results.json
reporter: jest-junit

evaluate-config:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@

# Testing
summary-test.html
jest-results.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "node dist",
"build": "ncc build --license LICENSE",
"cli": "ncc build src/cli.ts -o dist-cli && node dist-cli",
"test": "jest",
"test": "jest --json --outputFile=jest-results.json",
"fix": "eslint --fix '{src,test}/**/*'",
"lint": "eslint '{src,test}/**/*'"
},
Expand Down

0 comments on commit dcdf564

Please sign in to comment.