-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (62 loc) · 1.61 KB
/
android-jetpack.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
63
64
65
66
67
68
69
name: CI Android Enhanced Video Player
on:
push:
paths-ignore:
- '**.md'
- '**.txt'
- '.idea/**'
branches: [ main ]
pull_request_review:
types:
- submitted
concurrency:
group: ci-check-${{ github.ref }}
cancel-in-progress: true
jobs:
setup-cacheable-deps:
if: (github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'skip-ci')) || (github.event_name == 'push')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Setup Java"
id: cache-java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
if: steps.cache-java.outputs.cache-hit != 'true'
run: ./gradlew build
lint:
needs: setup-cacheable-deps
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
cache: 'gradle'
- name: Lint
run: yarn lint
test:
needs: setup-cacheable-deps
runs-on: ubuntu-latest
timeout-minutes: 9
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
cache: 'gradle'
- name: Test
run: yarn test