diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index eb24f97..1e1bfcd 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -49,16 +49,14 @@ jobs: - name: Build run: go build -v ./... - - name: Test - run: go test -v -coverprofile=coverage.txt -covermode=atomic ./... - - name: govulncheck uses: golang/govulncheck-action@v1 with: go-version-input: 1.22 go-package: ./... - - shell: bash + - name: Test and Codecov + shell: bash env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: | @@ -67,6 +65,7 @@ jobs: # You will need to setup the environment variables below in github # and the project in codecov.io go test -v -coverprofile=coverage.txt -covermode=atomic ./... - curl -Os https://uploader.codecov.io/latest/linux/codecov + curl -Os https://cli.codecov.io/latest/linux/codecov chmod +x codecov CODECOV_TOKEN=$CODECOV_TOKEN ./codecov + ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml