Skip to content

Code coverage check

Code coverage check #6

name: Code coverage check
on:
workflow_dispatch:
pull_request:
jobs:
run-code-coverage-check:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build and test with Gradle
run: ./gradlew clean generateJacocoCoverageReport
- name: Upload unit tests report
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-tests-report
path: build/reports/tests/aggregate
- name: Upload JaCoCo report
if: always()
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: build/reports/jacoco/jacoco/html