Skip to content

Commit

Permalink
fix(test): test before sonarqube analysis
Browse files Browse the repository at this point in the history
- add CTRF report as PR comment
  • Loading branch information
cgawron committed Oct 3, 2024
1 parent c12d1e5 commit d91fa5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "module",
"scripts": {
"test": "vitest run src/**/*.spec.ts --coverage",
"ci": "vitest run src/**/*.spec.ts --coverage; yarn dlx junit-to-ctrf -o ../crtf/backend-ctrf.json TEST-backend.xml",
"ci": "vitest run src/**/*.spec.ts --coverage; yarn dlx junit-to-ctrf -o ../ctrf/backend-ctrf.json TEST-backend.xml",
"start": "node build/server.js",
"server": "nodemon src/server.ts",
"dev": "concurrently \"npm run server\" \"npm run client\"",
Expand Down
2 changes: 1 addition & 1 deletion common/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config: Config = {
verbose: true,
reporters: [
'default',
['jest-ctrf-json-reporter', { outputFile: 'common-ctrf.json', outputDir: '../crtf' }],
['jest-ctrf-json-reporter', { outputFile: 'common-ctrf.json', outputDir: '../ctrf' }],
],
testEnvironment: "node",
transform: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "echo \"no tests yet\" && exit 0",
"ci": "yarn workspaces foreach --all run ci; yarn dlx merge-ctrf crtf",
"ci": "yarn workspaces foreach --all run ci; yarn dlx merge-ctrf -k ctrf",
"backend": "yarn workspace backend start",
"client": "yarn workspace client start",
"build:common": "yarn workspace common build",
Expand Down

0 comments on commit d91fa5d

Please sign in to comment.