Skip to content

Commit 389a18f

Browse files
Refactor code quality workflow to separate linting and SonarQube jobs (#3)
Changes: - Introduced a new SonarQube job for code analysis
1 parent cd34134 commit 389a18f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/code-quality.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,16 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717
- name: Lint
18-
run: echo "Linting..."
18+
run: echo "Linting..."
19+
20+
sonarqube:
21+
name: SonarQube
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
27+
- name: SonarQube Scan
28+
uses: SonarSource/sonarqube-scan-action@v5
29+
env:
30+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sonar.projectKey=speedandfunction_automatization
2+
sonar.organization=speedandfunction

0 commit comments

Comments
 (0)