Add: upload coverge again when push commit. (#175)

Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
xuezhaojun
2023-06-08 16:27:10 +08:00
committed by GitHub
parent 87d152e115
commit 6d4c48822c

View File

@@ -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