-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 986 Bytes
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Code Cov Workflow
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
name: "Codecov"
steps:
- uses: actions/checkout@v4
- name: Setup java 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build project
uses: gradle/gradle-build-action@v2.9.0
with:
arguments: test jacocoTestReport
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- name: Upload test report
uses: actions/upload-artifact@v3
with:
path: build/reports/tests/test/
name: Test Report
retention-days: 14
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
path: build/reports/jacoco/test/
name: Coverage Report
retention-days: 14