Skip to content

Commit

Permalink
WIP: test-result reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Dec 20, 2023
1 parent da16931 commit f709096
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Run npm tests
working-directory: ./foreman_acd
run: |
npm test
npm test-github-actions
- name: Run access permission test
run: |
bundle exec rake test TEST="test/unit/foreman/access_permissions_test.rb"
Expand Down
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
reporters: [
"default",
"jest-github-actions-reporter"
]
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.24.1",
"jest": "^23.6.0",
"jest-github-actions-reporter": "^1.0.3",
"jest-prop-type-error": "^1.1.0",
"lodash": "^4.17.11",
"react-redux-test-utils": "^0.1.1",
"sortabular": "^1.5.1",
"table-resolver": "^3.2.0"
},
"scripts": {
"test": "node node_modules/.bin/jest --no-cache"
"test": "node node_modules/.bin/jest --no-cache",
"test-github-actions": "CI=true node node_modules/.bin/jest --no-cache --reporters=default --reporters=jest-github-actions-reporter"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit f709096

Please sign in to comment.