-
Notifications
You must be signed in to change notification settings - Fork 33
62 lines (61 loc) · 1.73 KB
/
pull_requests.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Pull request
on: pull_request
jobs:
commitsar:
runs-on: [ubuntu-latest]
name: Verify commit messages
steps:
- uses: actions/checkout@v1
- name: Run commitsar
uses: docker://commitsar/commitsar
checks:
runs-on: [ubuntu-latest]
name: Run checks
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle Folders
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
cache-gradle-
- name: Run check
run: ./gradlew check
assemble:
runs-on: [ubuntu-latest]
name: Assemble the project
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle Folders
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
cache-gradle-
- name: Run assembleDebug
run: ./gradlew assembleDebug
publishToMavenLocal:
runs-on: [ubuntu-latest]
name: Publish to Maven local
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle Folders
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
cache-gradle-
- name: Run publishToMavenLocal
run: ./gradlew publishToMavenLocal