Skip to content

Commit

Permalink
Create .codecov.yml (publiclab#9905)
Browse files Browse the repository at this point in the history
* 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
jywarren authored and reginaalyssa committed Oct 16, 2021
1 parent 9c972d7 commit 018c949
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/merge-pr.yml
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
16 changes: 13 additions & 3 deletions codecov.yml
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

0 comments on commit 018c949

Please sign in to comment.