Add sonar cloud into run-tests

This commit is contained in:
dave-shawley 2021-04-06 21:51:36 -04:00 committed by GitHub
parent 26e596172e
commit a47442332c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ on:
branches: ["*"]
tags-ignore: ["*"]
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
jobs:
test:
@ -42,3 +42,15 @@ jobs:
flags: unittests
fail_ci_if_error: true
verbose: true
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}