-
-
Notifications
You must be signed in to change notification settings - Fork 243
43 lines (36 loc) · 1.01 KB
/
ci_api.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
name: Build (API)
on:
push:
paths:
- 'noty-api/**'
pull_request:
paths:
- 'noty-api/**'
jobs:
build:
name: Build API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Gradle
uses: actions/cache@v2
with:
path: ~/noty-android/.gradle/caches/
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache Gradle wrapper
uses: actions/cache@v2
with:
path: ~/noty-android/.gradle/wrapper/
key: cache-clean-wrapper-${{ runner.os }}-${{ matrix.jdk }}
- name: Grant Permission to Execute
run: chmod +x gradlew
working-directory: noty-api
- name: 🏗 Build with Gradle 🛠️
run: ./gradlew build --stacktrace
working-directory: noty-api