Skip to content

Commit

Permalink
Set up unit test and jacoco report
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyiam authored Jun 14, 2020
1 parent 38e63c6 commit 3349eb4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [7, 11]
jdk: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
Expand All @@ -32,6 +32,14 @@ jobs:
- name: Build SDK with JDK 7
if: matrix.jdk == '7'
run: mvn clean compile -pl apollo-client,apollo-mockserver,apollo-openapi -am -Dmaven.gitcommitid.skip=true
- name: Full Build
if: matrix.jdk != '7'
- name: JDK 8
if: matrix.jdk == '8'
run: mvn -B package -P travis jacoco:report -Dmaven.gitcommitid.skip=true
- name: JDK 11
if: matrix.jdk == '11'
run: mvn clean compile -Dmaven.gitcommitid.skip=true
- name: Upload coverage to Codecov
if: matrix.jdk == '8'
uses: codecov/codecov-action@v1
with:
file: ${{ github.workspace }}/apollo-*/target/site/jacoco/jacoco.xml

0 comments on commit 3349eb4

Please sign in to comment.