浏览代码

workflow: add custom codecov configuration

rdb 5 年之前
父节点
当前提交
3760ad298a
共有 2 个文件被更改,包括 17 次插入1 次删除
  1. 16 0
      .github/codecov.yml
  2. 1 1
      .github/workflows/ci.yml

+ 16 - 0
.github/codecov.yml

@@ -0,0 +1,16 @@
+coverage:
+  status:
+    project:
+      default:
+        threshold: 0.1
+    patch:
+      default:
+        threshold: 0.1
+codecov:
+  require_ci_to_pass: true
+  notify:
+    after_n_builds: 2
+    wait_for_ci: true
+comment:
+  require_changes: true
+  after_n_builds: 2

+ 1 - 1
.github/workflows/ci.yml

@@ -323,7 +323,7 @@ jobs:
 
         llvm-profdata merge pid-*.profraw -o coverage.profdata
         llvm-cov show $(grep -Rl LLVM_PROFILE_FILE . | sed 's/^/-object /') -instr-profile=coverage.profdata > coverage.txt
-        bash <(curl -s https://codecov.io/bash)
+        bash <(curl -s https://codecov.io/bash) -y ../.github/codecov.yml
 
   makepanda:
     strategy: