Skip to content

Commit

Permalink
Add coverage push in github post action.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun committed Oct 21, 2024
1 parent f550bbd commit be9199b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/go-postsubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ env:
GO_REQUIRED_MIN_VERSION: ''

jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: unit
run: make test
- name: report coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
files: ./coverage.out
flags: unit
name: unit
verbose: true
fail_ci_if_error: true
images:
name: images
runs-on: ubuntu-latest
Expand Down

0 comments on commit be9199b

Please sign in to comment.