Compare commits

...

3 Commits

Author SHA1 Message Date
Namu
b46fe6ec99 change the sonar job to use java17
All checks were successful
build / build (push) Successful in 52s
SonarQube Scan / SonarQube Trigger (push) Successful in 30s
2025-09-14 18:19:04 +02:00
Namu
b21155f50f -
Some checks failed
build / build (push) Successful in 32s
SonarQube Scan / SonarQube Trigger (push) Failing after 19s
2025-09-13 20:04:23 +02:00
Namu
918fa62f84 corrects the name of the branch 2025-09-13 19:51:21 +02:00
2 changed files with 25 additions and 12 deletions

View File

@@ -1,21 +1,33 @@
name: SonarQube Scan
on: on:
push: push:
branches: branches:
- main - '**'
pull_request: pull_request:
types: [opened, synchronize, reopened] branches:
name: SonarQube Scan - '**'
jobs: jobs:
sonarqube: sonarqube:
name: SonarQube Trigger name: SonarQube Trigger
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checking out - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: SonarQube Scan
uses: kitabisa/sonarqube-action@v1.2.0 - name: Download SonarQube Scanner
with: run: |
host: ${{ secrets.SONARQUBE_HOST }} curl -sSLo sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.1.3006-linux.zip
login: ${{ secrets.SONARQUBE_TOKEN }} unzip sonar-scanner.zip
- name: Run SonarQube Scan
run: |
./sonar-scanner-*/bin/sonar-scanner \
-Dsonar.projectKey=ton-projet \
-Dsonar.sources=. \
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}

View File

@@ -48,3 +48,4 @@ for (int i = 0; i < 5; i++)
{ {
Console.WriteLine($"Count: {i}"); Console.WriteLine($"Count: {i}");
} }