From 2e3dd5032ffb9a653d8fa628b7de92405d17d8c0 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Tue, 23 Apr 2024 14:54:42 +0200 Subject: [PATCH] Add codecov --- .github/workflows/go-test.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 +