From 0659b9f12f1992a67ecaeeaa67839a8748c8ff57 Mon Sep 17 00:00:00 2001 From: soup-bowl Date: Wed, 9 Oct 2024 21:11:55 +0100 Subject: [PATCH] Added SonarQube. --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ sonar-project.properties | 1 + 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e709fa9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Codebase + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@v3 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..96b8b27 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=soup-bowl_opensim-sandbox_b6658004-fd8f-4760-9fb6-b2887e8c0101