diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 4f8f87f..3ff2696 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -7,6 +7,7 @@ on: push: branches: - master + - develop jobs: test: runs-on: ubuntu-latest @@ -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/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} slug: metal3d/katenary - file: ./coverout.out + file: ./coverprofile.out fail_ci_if_error: true