From 80e2ce0a8330fdd3a8941d60189a4c35d006ddde Mon Sep 17 00:00:00 2001 From: Eric McElroy Date: Tue, 7 Jul 2026 12:36:52 -0400 Subject: [PATCH 1/2] add sonarqube setup --- .github/workflows/ci.yml | 14 ++++++++++++++ sonar-project.properties | 1 + 2 files changed, 15 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0948330..b7427fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,3 +188,17 @@ jobs: - name: Fail job if UI tests failed if: steps.ui-test-script.outputs.exists == 'true' && steps.ui-tests.outcome == 'failure' run: exit 1 + + build-analyze: + steps: + - name: Build and analyze + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: SonarSource/sonarqube-scan-action@v6.0.0 + 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..09f1d1b --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=esmcelroy_photo-grid-collage-maker_26e3c305-5a5a-470e-8dd7-cb26d629ab6b \ No newline at end of file From 83c587e7aca82c35ef9b119c176369d7111bec5b Mon Sep 17 00:00:00 2001 From: Eric McElroy Date: Tue, 7 Jul 2026 15:28:29 -0400 Subject: [PATCH 2/2] Refactor build-analyze step in CI workflow --- .github/workflows/ci.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7427fe..b987e3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -190,15 +190,12 @@ jobs: run: exit 1 build-analyze: - steps: - - name: Build and analyze - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: SonarSource/sonarqube-scan-action@v6.0.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: SonarSource/sonarqube-scan-action@v6.0.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}