Merge pull request #85 from contentstack/next #240
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: Java CI with Code Coverage | |
on: | |
push: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Code Coverage | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "11" | |
distribution: "adopt" | |
- name: Build with Maven` | |
run: mvn clean package | |
- name: Run Tests with JaCoCo | |
run: mvn jacoco:prepare-agent jacoco:report | |
- name: Upload Code Coverage Report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: code-coverage-report | |
path: target/site/jacoco |