-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 874 Bytes
/
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
38
39
40
41
name: build
on: [ push ]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Cache Gradle dependencies
# Cache Gradle Wrapper
- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
build:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the project
run: ./gradlew build
- name: Upload Test Report
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: test-report
path: |
**/build/reports/tests/**/*