diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index a4700e1..4e146a2 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -21,4 +21,12 @@ jobs: ./get_helm.sh - name: Launch Test run: | - go test -v ./... + go vet ./... && go test -coverprofile=coverout.out -v ./... + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: metal3d/katenary + file: ./coverout.out + fail_ci_if_error: true +