Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,19 @@ jobs:
name: test-report
path: gridkit-core/build/reports/tests/test/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
- name: Generate coverage badge
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: cicirello/jacoco-badge-generator@v2
with:
files: gridkit-core/build/reports/jacoco/test/jacocoTestReport.xml
fail_ci_if_error: false
jacoco-csv-file: gridkit-core/build/reports/jacoco/test/jacocoTestReport.csv
badges-directory: .github/badges
generate-branches-badge: true

- name: Commit coverage badge
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add .github/badges/ || true
git diff --cached --quiet || git commit -m "chore: update coverage badge [skip ci]"
git push
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![GridKit Logo](GridKit.png)

[![CI](https://github.com/tolikttaaa/GridKit/actions/workflows/ci.yml/badge.svg)](https://github.com/tolikttaaa/GridKit/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/tolikttaaa/GridKit/graph/badge.svg?token=R1E33N9QTK)](https://codecov.io/gh/tolikttaaa/GridKit)
[![Coverage](.github/badges/jacoco.svg)](gridkit-core/build/reports/jacoco/test/index.html)

A Kotlin library providing a unified abstraction layer for tile-based game boards.
GridKit supports square, hexagonal, and triangular grid topologies through a single,
Expand Down
1 change: 1 addition & 0 deletions gridkit-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required = true
csv.required = true
html.required = true
}
}
Loading