Hideout/.github/workflows/coverage.yml

35 lines
882 B
YAML
Raw Normal View History

2023-11-06 15:45:38 +00:00
name: Coverage
on:
pull_request:
2023-11-09 06:49:29 +00:00
permissions:
pull-requests: write
2023-11-06 15:45:38 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Run JUnit
uses: gradle/gradle-build-action@v2.8.1
with:
2023-11-13 06:59:32 +00:00
arguments: koverXmlReport -x integrationTest
2023-11-06 15:45:38 +00:00
- name: Add coverage report to PR
2023-11-13 06:59:32 +00:00
if: always()
2023-11-06 15:45:38 +00:00
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
coverage-counter-type: LINE