-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 741 Bytes
/
codecoverage.yml
File metadata and controls
33 lines (28 loc) · 741 Bytes
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
name: Code Coverage
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
publish-code-coverage:
if: ${{ !contains(github.event.head_commit.message, 'coverage skip') }}
runs-on: ubuntu-latest
env:
JDK_VERSION: ${{ matrix.jdk }}
GRADLE_OPTS: -Dorg.gradle.daemon=false
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Generate Coverage Report
run: ./gradlew jacocoTestReport -Dorg.gradle.caching=false
- name: Publish Coverage
if: success()
run: bash <(curl -s https://codecov.io/bash)
shell: bash