Add code coverage #9
Workflow file for this run
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
name: Build StAXMapper | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: build with JDK 11 | |
steps: | |
- uses: actions/checkout@v3 | |
name: checkout | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build | |
run: mvn -B install --file pom.xml -P coverage | |
- name: Upload code coverage report | |
uses: 'actions/upload-artifact@v2' | |
with: | |
name: jacoco | |
path: target/site/jacoco |