Skip to content

Commit

Permalink
chore: run build on self-hosted runner and add kover report
Browse files Browse the repository at this point in the history
This commit modifies the build workflow to run on a self-hosted runner instead of
 ubuntu-latest.
It also adds steps to generate and display Kover code coverage reports.
The upload of build reports is commented out.
  • Loading branch information
shinhyo committed Aug 27, 2024
1 parent d51146f commit 2a171b1
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Build
on:
push:
branches:
- develop
- test_github_flow
# - develop
pull_request:

concurrency:
Expand All @@ -12,7 +13,8 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: self-hosted
timeout-minutes: 60

steps:
Expand Down Expand Up @@ -51,9 +53,24 @@ jobs:
- name: Check Spotless
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache --stacktrace

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v3
- name: Check Kover
run: |
./gradlew koverXmlReport
./gradlew koverHtmlReport
# - name: Upload build reports
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: build-reports
# path: app/build/reports

- name: Display local test coverage
uses: madrapps/jacoco-report@v1.6.1
with:
name: build-reports
path: app/build/reports
title: test coverage report
# min-coverage-overall: 40
# min-coverage-changed-files: 60
paths: |
${{ github.workspace }}/**/build/reports/kover/**/report.xml
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2a171b1

Please sign in to comment.