mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Add: upload coverge again when push commit. (#175)
Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
22
.github/workflows/post.yml
vendored
22
.github/workflows/post.yml
vendored
@@ -17,6 +17,28 @@ env:
|
||||
GO_REQUIRED_MIN_VERSION: ''
|
||||
|
||||
jobs:
|
||||
coverage:
|
||||
name: coverage
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: install Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
- name: unit
|
||||
run: make test
|
||||
- name: report coverage
|
||||
uses: codecov/codecov-action@v3
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user