Skip to content

Commit 78580ee

Browse files
committed
ci: integrate Codecov for coverage reporting
1 parent 28300e2 commit 78580ee

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: codecov
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
jobs:
9+
codecov:
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- uses: actions/checkout@v5
13+
- uses: actions/setup-java@v5
14+
with:
15+
distribution: 'temurin'
16+
java-version: 25
17+
- uses: actions/cache@v4
18+
with:
19+
path: ~/.m2/repository
20+
key: maven-${{ hashFiles('**/pom.xml') }}
21+
- run: |
22+
mvn clean install
23+
- name: Upload coverage reports to Codecov
24+
uses: codecov/codecov-action@v5
25+
env:
26+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
27+
with:
28+
files: ./target/site/jacoco/jacoco.xml
29+
fail_ci_if_error: false

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![Java](https://img.shields.io/badge/JDK-25%2B-007396?logo=openjdk)
55
![GraalVM](https://img.shields.io/badge/GraalVM-25.x-FF6F00?logo=oracle)
66
[![Maven Central](https://img.shields.io/maven-central/v/io.github.ih0r-d/polyglot-adapter.svg?label=maven%20central)](https://central.sonatype.com/artifact/io.github.ih0r-d/polyglot-adapter)
7+
[![codecov](https://codecov.io/gh/<user>/<repo>/branch/main/graph/badge.svg)](https://codecov.io/gh/ih0r-d/polyglot-adapter)
78
![License](https://img.shields.io/badge/license-Apache--2.0-blue)
89

910
---

0 commit comments

Comments
 (0)