diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index eab77a54f4..7f7f58dbab 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 }}