Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
ci: Configuring SonarCloud analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed May 29, 2021
1 parent fb226ab commit 33d2b97
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
run: |
make
git --no-pager diff -- ':(exclude)go.sum' && git diff --quiet -- ':(exclude)go.sum'
- name: Codecov
uses: codecov/codecov-action@v1
- name: Setup Docker
uses: docker/setup-buildx-action@v1
- name: Setup DockerHub
Expand All @@ -59,8 +61,22 @@ jobs:
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
docker push "${{ secrets.DOCKER_USER }}/$(make name):$(make version)"
- name: Codecov
uses: codecov/codecov-action@v1
sonarcloud:
name: SonarCloud
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: SonarCloud
if: env.SONAR_TOKEN
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish:
name: Publish
Expand Down

0 comments on commit 33d2b97

Please sign in to comment.