Skip to content

chore(deps): update actions/checkout action to v4.1.1 #414

chore(deps): update actions/checkout action to v4.1.1

chore(deps): update actions/checkout action to v4.1.1 #414

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/[email protected]
with:
distribution: temurin
java-version: 18
- name: Run unit tests
uses: gradle/[email protected]
with:
arguments: --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/[email protected]
with:
distribution: temurin
java-version: 18
- name: Run unit tests
uses: gradle/[email protected]
with:
arguments: --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