forked from detekt/detekt
-
Notifications
You must be signed in to change notification settings - Fork 0
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@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Setup Java
uses: actions/setup-java@2c7a4878f5d120bd643426d54ae1209b29cc01a3 # tag=v3
with:
java-version: 17
distribution: 'temurin'
- name: Generate Coverage Report
uses: gradle/gradle-build-action@cd3cedc781988c804f626f4cd2dc51d0bdf02a12 # tag=v2
with:
arguments: jacocoMergedReport
- name: Publish Coverage
if: success()
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # tag=v3