Skip to content

Commit

Permalink
Add SonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodicaprio authored Jun 5, 2023
1 parent fd7a42e commit 0581282
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Go
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, synchronize, reopened]

jobs:

Expand Down Expand Up @@ -38,3 +40,14 @@ jobs:
title: "Continuous Build"
files: |
apx.tar.gz
sonar:
name: Sonar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sonar.projectKey=Vanilla-OS_apx_AYiLLt9U9CPJrZw6oxBN

0 comments on commit 0581282

Please sign in to comment.