Skip to content

Commit

Permalink
feat: codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Nov 18, 2021
1 parent 2314906 commit 451f6ff
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
codecov:
require_ci_to_pass: true

coverage:
precision: 2
round: down
range: "70...100"

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,files,footer" # if true: only post the comment if coverage changes
behavior: default
require_changes: false
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ jobs:
- uses: olafurpg/setup-scala@v13
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Test
run: sbt core/test
- name: Code Quality
- name: Code Format
run: sbt scalafmtCheckAll
- name: Test & coverage
run: sbt coverage core/test coverageReport
- uses: codecov/codecov-action@v2
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./core/target/scala-*/scoverage-data/scoverage.coverage
# flags: unittests # optional
name: codecov-doric
fail_ci_if_error: true
verbose: true
- name: Cleaning for cache
run: |
rm -rf "$HOME/.ivy2/local" || true
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ Global / scalacOptions ++= Seq(
)

// Scoverage settings
Global / coverageEnabled := true
Global / coverageEnabled := false
Global / coverageFailOnMinimum := false
Global / coverageHighlighting := true

0 comments on commit 451f6ff

Please sign in to comment.