Added jacoco report #15
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: Main CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache Maven packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Set up OpenJDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Run Checkstyle | |
| run: mvn checkstyle:check | |
| - name: Build and run tests | |
| run: mvn verify | |
| - name: Upload JaCoCo reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-reports | |
| path: | | |
| user-service/target/site/jacoco | |
| notification-service/target/site/jacoco | |
| - name: Upload JaCoCo coverage to Qlty Cloud | |
| uses: qltysh/qlty-action/coverage@v1 | |
| with: | |
| token: ${{ secrets.QLTY_COVERAGE_TOKEN }} | |
| files: | | |
| user-service/target/site/jacoco/jacoco.xml | |
| notification-service/target/site/jacoco/jacoco.xml |