Skip to content

Commit

Permalink
Fix/codecov reports (#112)
Browse files Browse the repository at this point in the history
* fix: codecov

Co-authored-by: Eduardo Ruiz <eduardo.ruiz@hablapps.com>
  • Loading branch information
eruizalo and eruizalo authored Nov 19, 2021
1 parent dc37787 commit 67b36ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
codecov:
require_ci_to_pass: true
branch: main

coverage:
precision: 2
round: nearest
range: "80...100"
status:
patch: true
project:
default:
target: auto
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ jobs:
- name: Code Format
run: sbt scalafmtCheckAll
- name: Test & coverage
run: sbt coverage core/test coverageReport
run: sbt coverage core/test coverageReport coverageAggregate
- uses: codecov/codecov-action@v2
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./core/target/scala-2.12/scoverage-report/scoverage.xml
# flags: unittests # optional
name: codecov-doric
# files: ./core/target/scala-2.12/scoverage-report/scoverage.xml
files: ./target/scala-2.12/scoverage-report/scoverage.xml
fail_ci_if_error: true
verbose: true
- name: Cleaning for cache
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- name: Test & coverage # TODO running tests twice
run: sbt coverage core/test coverageReport coverageAggregate
- uses: codecov/codecov-action@v2
with:
# files: ./core/target/scala-2.12/scoverage-report/scoverage.xml
files: ./target/scala-2.12/scoverage-report/scoverage.xml
fail_ci_if_error: true
verbose: true
- name: Build the microsite
run: |
sbt docs/mdoc
Expand All @@ -41,4 +49,3 @@ jobs:
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true

0 comments on commit 67b36ee

Please sign in to comment.