-
Notifications
You must be signed in to change notification settings - Fork 525
46 lines (38 loc) · 1.14 KB
/
sonarqube.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: SonarCloud
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
lfs: true
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: 16.17
- name: Enable corepack
run: corepack enable yarn
- name: Install dependencies
run: yarn install
- name: Generates lint report and file path formatting
run: |
yarn lint:ci:report
sed -i 's|/home/runner/work/lichtblick/lichtblick/|./|g' eslint-report.json
continue-on-error: true
- name: Test and coverage
run: yarn test:coverage
continue-on-error: true
- name: ScanCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}