Update codecov action

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/6654/head
wangting0128 2021-07-20 15:34:14 +08:00
parent e0d5542ac1
commit 7e6d0bbf22
1 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,19 @@ name: Build and test
# This workflow is triggered on pushes or pull request to the repository.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'scripts/**'
- 'internal/**'
- 'cmd/**'
- 'build/**'
- '.github/workflows/main.yaml'
- '.env'
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
@ -53,6 +66,7 @@ jobs:
run: |
./build/builder.sh /bin/bash -c "make check-proto-product && make unittest"
- name: Upload coverage to Codecov
if: github.repository == 'milvus-io/milvus'
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}