-
-
Notifications
You must be signed in to change notification settings - Fork 755
38 lines (31 loc) · 981 Bytes
/
codecoverage.yaml
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
36
37
38
name: Code Coverage
on:
push:
branches:
- main
pull_request:
branches:
- '**'
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
permissions:
contents: read
jobs:
publish-code-coverage:
if: ${{ !contains(github.event.head_commit.message, 'coverage skip') }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
- name: Setup Java
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3
with:
java-version: 17
distribution: 'temurin'
- name: Generate Coverage Report
uses: gradle/gradle-build-action@fd32ae908111fe31afa48827bd1ee909540aa971 # tag=v2
with:
arguments: jacocoMergedReport
- name: Publish Coverage
if: success()
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # tag=v3