From 9c626375d3038a2315a98905e8a186029253ed52 Mon Sep 17 00:00:00 2001 From: Ben Pollard <129943363+benpollarduk@users.noreply.github.com> Date: Fri, 22 Dec 2023 12:05:09 +0000 Subject: [PATCH] Sonar analysis (#41) * Update main-ci.yml * Update main-ci.yml --- .github/workflows/main-ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index 95b7d2c6..c64a20e3 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -1,6 +1,3 @@ -# main ci workflow is to ensure the codebase builds. -# all unit tests must pass for the workflow to complete successfully. - name: main-ci on: @@ -20,7 +17,7 @@ env: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -44,4 +41,14 @@ jobs: uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + - name: SonarCloud analysis + uses: SonarSource/sonarcloud-github-action@v1.8 + with: + args: > + -Dsonar.organization=benpollarduk + -Dsonar.projectKey=benpollarduk_adventure-framework + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}