Skip to content

Commit

Permalink
Use sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
metal3d committed Apr 24, 2024
1 parent e0c18ec commit 531756d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- master
- develop
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -23,12 +24,17 @@ jobs:
./get_helm.sh
- name: Launch Test
run: |
go vet ./... && go test -coverprofile=coverout.out -v ./...
go vet ./... && go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: metal3d/katenary
file: ./coverout.out
file: ./coverprofile.out
fail_ci_if_error: true

0 comments on commit 531756d

Please sign in to comment.