Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
magestacks committed Oct 28, 2022
1 parent 0c28a88 commit 2aef0db
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,25 @@ jobs:
- uses: actions/checkout@v3
- name: Build with Maven
run: echo y | mvn clean install -Dskip.gpg=true -Dspotless.apply.skip=true -Dmaven.javadoc.skip=true

test-coverage:
if: github.repository == 'opengoofy/hippo4j'
name: Test coverage report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Maven Repos
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: hippo4j-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
hippo4j-maven-third-party-
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
- name: Test with Maven
run: ./mvnw -T1C -B -ntp clean install cobertura:cobertura -Djacoco.skip=false
- name: Upload to Codecov
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 2aef0db

Please sign in to comment.