forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create .codecov.yml (publiclab#9905)
* Create .codecov.yml * Delete .codecov.yml * Update codecov.yml * Update codecov.yml * Update codecov.yml * add codecov github action * Create merge-pr.yml https://github.community/t/triggering-workflow-on-merge/17165/2 * remove codecov gh-action
- Loading branch information
1 parent
9c972d7
commit 018c949
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Merge PR | ||
on: | ||
pull_request: | ||
types: [closed] | ||
jobs: | ||
merge-PR: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ./.github/workflows/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
# Documentation: https://docs.codecov.io/docs/codecov-yaml | ||
|
||
comment: | ||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_changes: false # if true: only post the comment if coverage changes | ||
require_base: no # [yes :: must have a base report to post] | ||
after_n_builds: 4 | ||
require_changes: true # if true: only post the comment if coverage changes | ||
require_base: yes # [yes :: must have a base report to post] | ||
require_head: yes # [yes :: must have a head report to post] | ||
branches: null # branch names that can post comment | ||
coverage: | ||
precision: 2 | ||
status: | ||
project: | ||
default: | ||
threshold: 1% | ||
threshold: 3% | ||
patch: | ||
default: | ||
threshold: 50% | ||
|
||
ignore: | ||
- app/assets/stylesheets/ | ||
|
||
codecov: | ||
# Avoid "Missing base report" due to committing CHANGES.rst with "[CI skip]" | ||
# https://github.com/codecov/support/issues/363 | ||
# https://docs.codecov.io/v4.3.6/docs/comparing-commits | ||
allow_coverage_offsets: true |