Skip to content

Commit

Permalink
feat: add sonarcloud test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmate committed Jul 7, 2024
1 parent a9a011c commit dd1288d
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 87 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Test and coverage
run: npm run test:coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,4 @@ TSWLatexianTemp*
/playwright-report/
/blob-report/
/playwright/.cache/
coverage
233 changes: 152 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,11 @@
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"test": "vitest --exclude \"**/tests/e2e\"",
"test:e2e": "npx playwright test",
"test:coverage": "vitest --exclude \"**/tests/e2e\" --coverage",
"eject": "react-scripts eject",
"format": "npx @biomejs/biome format --write ./src",
"lint": "npx @biomejs/biome lint --apply ./src"
},
"jest": {
"testPathIgnorePatterns": [
"/node_modules/",
"tests/e2e/"
]
},
"browserslist": [
">0.2%",
"not dead",
Expand All @@ -45,6 +40,7 @@
"@biomejs/biome": "1.7.3",
"@playwright/test": "^1.44.0",
"@types/node": "^20.12.12",
"@vitest/coverage-v8": "^1.6.0",
"lefthook": "1.6.11",
"vitest": "1.6.0"
}
Expand Down

0 comments on commit dd1288d

Please sign in to comment.