- support May 2024 release #104
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: APIM ENV CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: 'zulu' | |
- name: Build with Maven | |
run: mvn verify | |
- name: jacoco-badge-generator | |
uses: cicirello/[email protected] | |
- name: Log coverage percentages to workflow output | |
run: | | |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | |
echo "branches = ${{ steps.jacoco.outputs.branches }}" | |
- name: Upload JaCoCo coverage report as a workflow artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: jacoco-report | |
path: target/site/jacoco/ | |
- name: Commit and push the coverage badges and summary file | |
run: | | |
if [[ `git status --porcelain *.svg *.json` ]]; then | |
git config --global user.name 'rathnapandi' | |
git config --global user.email '[email protected]' | |
git add -A | |
git commit -m "Autogenerated JaCoCo coverage badges badge" | |
git push | |
fi |