ci: 🚀 sonarqube
CI / build (tx-sync-linux-amd64, amd64, linux) (push) Successful in 22s
CI / build (tx-sync-windows-amd64.exe, amd64, windows) (push) Successful in 15s
CI / SonarQube (push) Successful in 22s

This commit is contained in:
2026-05-07 01:05:55 +01:00
parent 326f5ac751
commit 791c3c2393
@@ -1,4 +1,4 @@
name: tx-sync build
name: CI
on:
push:
@@ -42,3 +42,30 @@ jobs:
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}
sonarqube:
name: SonarQube
runs-on: build-htz-01
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Valid Project Key
id: sonar_setup
run: |
CLEAN_KEY=$(echo "${{ gitea.repository }}" | tr '/' ':')
echo "key=$CLEAN_KEY" >> $GITHUB_OUTPUT
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
continue-on-error: true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectKey=${{ steps.sonar_setup.outputs.key }}
-Dsonar.projectName=${{ gitea.repository }}
-Dsonar.qualitygate.wait=true