Skip to content

chore(deps): update gradle to v9.1.0 #667

chore(deps): update gradle to v9.1.0

chore(deps): update gradle to v9.1.0 #667

Workflow file for this run

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@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
distribution: temurin
java-version: 23
- name: Setup Gradle
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # 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@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
distribution: temurin
java-version: 23
- name: Setup Gradle
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # 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