From e7edd52372f4e0f78c7f52b342f63b9c1cc69e63 Mon Sep 17 00:00:00 2001 From: ArthurBreEpsi <77726871+ArthurBreEpsi@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:56:22 +0200 Subject: [PATCH 1/2] Create sonar-project.properties --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..9c95c4dd --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=arthurBre From 1be93c83125200157f2146e4717a01b5d395dfc6 Mon Sep 17 00:00:00 2001 From: ArthurBreEpsi <77726871+ArthurBreEpsi@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:57:27 +0200 Subject: [PATCH 2/2] Create build.yml --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..4625a019 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build + +on: + push: + branches: + - main + + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: sonarsource/sonarqube-quality-gate-action@master + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}