-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.07 KB
/
build.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
36
37
name: Build
on: push
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gradle Cache
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-cache
- name: Cache Gradle Wrapper
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '13'
- name: Run build
run: |
- uses: codecov/codecov-action@v2
with:
directory: ./build/jacoco
verbose: true # optional (default = false)