quick fix #86
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: main-CI | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
checks: write | |
contents: read | |
deployments: read | |
issues: read | |
discussions: read | |
packages: read | |
pages: read | |
pull-requests: read | |
repository-projects: read | |
security-events: read | |
statuses: read | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots package | |
- name: Publish test coverage results | |
uses: PavanMudigonda/jacoco-reporter@v4.8 | |
with: | |
coverage_results_path: 'target/site/jacoco/jacoco.xml' | |
coverage_report_title: 'Test coverage results' | |
coverage_report_name: 'Test coverage results' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
minimum_coverage: 85 | |
fail_below_threshold: true | |
- name: Report code coverage to codecov | |
uses: codecov/codecov-action@v3 | |
# - name: 'Qodana Scan' | |
# uses: JetBrains/qodana-action@v2022.3.2 |