mirror of https://github.com/usbharu/Hideout.git
Merge pull request #139 from usbharu/usbharu-patch-3
Create coverage.yml
This commit is contained in:
commit
4b6316074f
|
@ -0,0 +1,33 @@
|
||||||
|
name: Coverage
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
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:
|
||||||
|
arguments: 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
|
||||||
|
coverage-counter-type: LINE
|
Loading…
Reference in New Issue