Skip to content

Additional fuzzy grep actions (#149) #548

Additional fuzzy grep actions (#149)

Additional fuzzy grep actions (#149) #548

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Run tests and generate coverage
run: ./gradlew koverXmlReport
- name: Upload coverage report artifact
# Only upload one artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: kover-report
path: build/reports/kover/report.xml
coverage-report:
needs: test
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/download-artifact@v4
with:
name: kover-report
path: build/reports/kover
- name: Add coverage report to PR
uses: mi-kas/kover-report@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
path: build/reports/kover/report.xml
title: Code Coverage
update-comment: true
min-coverage-overall: 50
min-coverage-changed-files: 55
coverage-counter-type: LINE