-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defines Jacoo plugin to enable code coverage analysis by Sonar
- Loading branch information
1 parent
26df64a
commit 0169b3f
Showing
2 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,26 +15,34 @@ | |
|
||
name: Java CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 8, 11, 17 ] | ||
java: [ '8', '11', '17' ] | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Maven on Java ${{ matrix.java }} | ||
run: mvn -V test -Ddoclint=all --file pom.xml --no-transfer-progress | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Maven on Java ${{ matrix.java }} | ||
if: matrix.java != '11' | ||
run: mvn -V test -Ddoclint=all --file pom.xml --no-transfer-progress | ||
- name: Code coverage | ||
if: matrix.java == '11' | ||
run: mvn -V test -Ddoclint=all -Pcoverage --file pom.xml --no-transfer-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters