Skip to content

Commit 7ef4e20

Browse files
authored
Merge pull request #17 from AltaPay/sonarqube-workflow
Sonarqube workflow
2 parents 4308e00 + 7b8c008 commit 7ef4e20

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: SonarQube Analysis
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["**"]
7+
8+
jobs:
9+
build:
10+
name: Run SonarQube Analysis
11+
runs-on: self-hosted
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
18+
- name: SonarQube Scan
19+
uses: sonarsource/sonarqube-scan-action@v6
20+
env:
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
23+
24+
- name: SonarQube Quality Gate check
25+
id: sonarqube-quality-gate-check
26+
uses: sonarsource/sonarqube-quality-gate-action@v1.2.0
27+
with:
28+
pollingTimeoutSec: 600
29+
env:
30+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
31+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.projectKey=AltaPay_plugin-shopware_6ff55bfb-f13e-4cba-a54c-9f0804511bbf
2+
sonar.projectBaseDir=src
3+
sonar.coverage.exclusions=**

0 commit comments

Comments
 (0)