chore(deps): update actions/setup-java action to v4.7.1 #589
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: Run tests | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
with: | |
distribution: temurin | |
java-version: 23 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4 | |
with: | |
add-job-summary: always | |
validate-wrappers: true | |
- name: Run unit tests | |
shell: bash | |
run: ./gradlew --no-daemon --no-configuration-cache check | |
- name: (Fail-only) Upload test report | |
if: "${{ failure() }}" | |
uses: actions/[email protected] | |
with: | |
name: Test report | |
path: build/reports | |
check-coverage: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
with: | |
distribution: temurin | |
java-version: 23 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4 | |
with: | |
add-job-summary: always | |
validate-wrappers: true | |
- name: Check coverage | |
shell: bash | |
run: ./gradlew --no-daemon --no-configuration-cache koverXmlReport | |
- name: Add coverage report to PR | |
id: kover | |
uses: mi-kas/kover-report@v1 | |
with: | |
path: ${{ github.workspace }}/build/reports/kover/report.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Code Coverage | |
update-comment: true | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 |