-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.46 KB
/
qa.yml
File metadata and controls
54 lines (51 loc) · 1.46 KB
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
47
48
49
50
51
52
53
54
name: QA
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
env:
DOTNET_NOLOGO: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full history is needed to get a proper list of changed files
fetch-depth: 0
# - uses: github/super-linter@v7
- uses: super-linter/super-linter/slim@v7
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false # Only changed files
VALIDATE_EDITORCONFIG: true
# VALIDATE_CSHARP: false # Checked by SonarQube
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true
VALIDATE_GITHUB_ACTIONS: true
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended by SonarQube for improving relevancy of reporting
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- run: dotnet tool restore
- run: dotnet gitversion /output buildserver
- run: ./sonar-scan.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}