mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-12-26 19:34:54 +00:00
Add sonar cloud into run-tests
This commit is contained in:
parent
26e596172e
commit
a47442332c
1 changed files with 13 additions and 1 deletions
14
.github/workflows/run-tests.yml
vendored
14
.github/workflows/run-tests.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue