From 262ca4539aec4d42190c1ac799392efe90c7953f Mon Sep 17 00:00:00 2001 From: Lynn Bendixsen Date: Thu, 22 Oct 2026 15:55:23 -0600 Subject: [PATCH] ci: add SonarQube scan to Tests workflow Signed-off-by: Lynn Bendixsen --- .github/workflows/tests.yml | 21 +++++++++++++++++++++ sonar-project.properties | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..95162a5 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,21 @@ +name: Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + unit: + name: Unit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - uses: SonarSource/sonarqube-scan-action@v8 + 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..16ee386 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,3 @@ +sonar.projectKey=indy-node-container +sonar.projectName=indy-node-container +sonar.sources=.