Skip to content

Added jacoco report #16

Added jacoco report

Added jacoco report #16

Workflow file for this run

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