Skip to content

Commit

Permalink
Sonar analysis (#41)
Browse files Browse the repository at this point in the history
* Update main-ci.yml

* Update main-ci.yml
  • Loading branch information
benpollarduk authored Dec 22, 2023
1 parent 2c09e94 commit 9c62637
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -20,7 +17,7 @@ env:

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout repository
Expand All @@ -44,4 +41,14 @@ jobs:
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: SonarCloud analysis
uses: SonarSource/[email protected]
with:
args: >
-Dsonar.organization=benpollarduk
-Dsonar.projectKey=benpollarduk_adventure-framework
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 9c62637

Please sign in to comment.