mirror of
https://github.com/gavvvr/obsidian-timecodes-plugin.git
synced 2026-07-22 05:38:08 +00:00
ci: publish E2E-tests coverage to SonarQube
This commit is contained in:
parent
6ad171f65d
commit
cae43473f6
2 changed files with 16 additions and 6 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
|
@ -29,11 +29,16 @@ jobs:
|
|||
- name: E2E tests
|
||||
run: pnpm install && xvfb-run pnpm run test
|
||||
working-directory: e2e
|
||||
- name: Upload coverage data
|
||||
- name: Upload unit-test coverage data
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: lcov.info
|
||||
name: lcov-unit.info
|
||||
path: out/coverage/lcov.info
|
||||
- name: Upload E2E-test coverage data
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: lcov-e2e.info
|
||||
path: e2e/out/coverage/lcov.info
|
||||
|
||||
SonarScan:
|
||||
needs: Build
|
||||
|
|
@ -42,11 +47,16 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||
- name: Download coverage data
|
||||
- name: Download unit-tests coverage data
|
||||
uses: actions/download-artifact@v5
|
||||
with:
|
||||
name: lcov.info
|
||||
path: coverage/
|
||||
name: lcov-unit.info
|
||||
path: coverage/unit/
|
||||
- name: Download E2E-tests coverage data
|
||||
uses: actions/download-artifact@v5
|
||||
with:
|
||||
name: lcov-e2e.info
|
||||
path: coverage/e2e/
|
||||
- name: SonarQube Scan
|
||||
uses: SonarSource/sonarqube-scan-action@v6
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ sonar.exclusions=**/*.test.ts
|
|||
sonar.tests=src
|
||||
sonar.test.inclusions=**/*.test.ts
|
||||
|
||||
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
||||
sonar.javascript.lcov.reportPaths=./coverage/unit/lcov.info,./coverage/e2e/lcov.info
|
||||
|
|
|
|||
Loading…
Reference in a new issue