Update pom.xml #6
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: Update README with Maven build and coverage | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn clean verify | |
- name: Generate JaCoCo report | |
run: mvn jacoco:report | |
- name: Upload coverage to Coveralls | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: target/site/jacoco/jacoco.xml | |
- name: Update README | |
run: | | |
echo "Maven Build Status: " >> README.md | |
echo "Coverage Status: [](https://coveralls.io/github/saraferraro18/PROVAASSIGNMENT)" >> README.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |