-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1001 Bytes
/
run-sonar.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: '- helper (sonar)'
on: workflow_call
jobs:
run-sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag_name }}
- name: Get Project LCOV
uses: actions/download-artifact@master
with:
name: appLcov
path: ./lcov.info
- name: SonarQube Scan
uses: sonarsource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
# -Dsonar.tests=projects/metis-ui-test-utils/src/lib
# -Dsonar.sources=projects/metis-ui-test-utils/src/lib
args:
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=europeana
-Dsonar.projectKey=europeana_metis-ui-test-utils
-Dsonar.test.inclusions=**/*.spec.ts
-Dsonar.exclusions=**/_mocked/**
-Dsonar.javascript.lcov.reportPaths=./lcov.info/lcov.info