Skip to content

Commit

Permalink
update CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
soypat committed Dec 20, 2024
1 parent 962a3fe commit a9b1306
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit a9b1306

Please sign in to comment.