Feat/trk 005 tracking event log #52
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: CI | |
| on: | |
| push: | |
| branches: [ master, develop ] | |
| pull_request: | |
| branches: [ master, develop ] | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build and run tests | |
| run: mvn clean verify -B | |
| - name: Check code format | |
| run: mvn fmt:check -B | |
| - name: Upload JaCoCo report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-report | |
| path: target/site/jacoco/ | |
| retention-days: 14 | |
| - name: Add coverage to PR | |
| if: >- | |
| github.event_name == 'pull_request' && | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| uses: madrapps/jacoco-report@v1.7.1 | |
| with: | |
| paths: target/site/jacoco/jacoco.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| min-coverage-overall: 40 | |
| min-coverage-changed-files: 60 | |
| title: "Test Coverage Report" | |
| update-comment: true | |
| - name: Publish test results | |
| if: >- | |
| always() && | |
| (github.event_name == 'push' || | |
| github.event.pull_request.head.repo.full_name == github.repository) | |
| uses: dorny/test-reporter@v1 | |
| with: | |
| name: Test Results | |
| path: target/surefire-reports/*.xml | |
| reporter: java-junit |