Skip to content

Commit 7f79b98

Browse files
Create code-coverage.yml
1 parent 917c191 commit 7f79b98

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Java CI with Code Coverage
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Setup JDK 17
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '17'
19+
- name: Build with Maven
20+
21+
run: mvn clean test jacoco:report
22+
- name: Upload Code Coverage Report
23+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)