diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-05-10 19:32:54 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-05-10 17:41:17 +0000 |
| commit | 9026e14289eaf45a00ddddb8730f2092b956d99a (patch) | |
| tree | e45f180d6351afbd223b96f87ba3e5856385b675 /.github | |
| parent | f7c35481a0c97addb5af75de0cd96c4db8d6d4ac (diff) | |
ci.yml: move codecov.yml and point it from config
Diffstat (limited to '.github')
| -rw-r--r-- | .github/codecov.yml | 34 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 6 |
2 files changed, 38 insertions, 2 deletions
diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 000000000..649d53c74 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,34 @@ +# Copyright 2020 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +# See https://docs.codecov.io/docs/codecovyml-reference +# Validate with curl --data-binary @codecov.yml https://codecov.io/validate + +codecov: + require_ci_to_pass: no + +coverage: + precision: 1 + round: nearest + range: "50...75" + status: + project: + default: + informational: true + threshold: 100% + target: 0% + patch: + default: + informational: true + threshold: 100% + target: 0% + +comment: + layout: "files" + after_n_builds: 2 + +github_checks: + annotations: false + +fixes: + - "gopath/src/github.com/google/syzkaller/::" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af4e56b26..48bd1078b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,8 @@ jobs: - name: codecov uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1 with: - files: gopath/src/github.com/google/syzkaller/.coverage.txt + codecov_yml_path: ${{env.GOPATH}}/src/github.com/google/syzkaller/.github/codecov.yml + file: ${{env.GOPATH}}/src/github.com/google/syzkaller/.coverage.txt flags: unittests token: ${{ secrets.CODECOV_TOKEN }} verbose: true @@ -96,7 +97,8 @@ jobs: - name: codecov uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1 with: - files: gopath/src/github.com/google/syzkaller/.coverage.txt + codecov_yml_path: ${{env.GOPATH}}/src/github.com/google/syzkaller/.github/codecov.yml + file: ${{env.GOPATH}}/src/github.com/google/syzkaller/.coverage.txt flags: dashboard token: ${{ secrets.CODECOV_TOKEN }} verbose: true |
