Bump org.mockito:mockito-core from 5.18.0 to 5.20.0 #160
Workflow file for this run
This file contains hidden or 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 JaCoCo | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn clean verify | |
| - name: Upload JaCoCo Report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-report | |
| path: graphqlcodegen-maven-plugin/target/site/jacoco | |
| - name: JaCoCo Report | |
| uses: madrapps/jacoco-report@v1.7.2 | |
| with: | |
| paths: graphqlcodegen-maven-plugin/target/site/jacoco/jacoco.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| min-coverage-overall: 80 | |
| min-coverage-changed-files: 90 | |
| update-comment: true | |
| title: Code Coverage Report | |
| - name: Generate Coverage Badge | |
| uses: cicirello/jacoco-badge-generator@v2 | |
| with: | |
| jacoco-csv-file: graphqlcodegen-maven-plugin/target/site/jacoco/jacoco.csv | |
| badges-directory: badges | |
| - name: Commit and push coverage badge | |
| if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add badges/*.svg | |
| git commit -m "Update coverage badge" || echo "No changes to commit" | |
| git push | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy JaCoCo report to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./graphqlcodegen-maven-plugin/target/site/jacoco | |
| publish_branch: gh-pages | |
| permissions: | |
| contents: write | |
| pull-requests: write |