-
Notifications
You must be signed in to change notification settings - Fork 106
68 lines (59 loc) · 2.2 KB
/
react-native.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
name: React-Native CI
on:
push:
branches: [ main ]
paths: [ '.github/**', 'examples/example-react-native-*/**', 'js/**' ]
pull_request:
branches: [ main ]
paths: [ '.github/**', 'examples/example-react-native-*/**', 'js/**' ]
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache-dependency-path: 'examples/example-react-native-*/yarn.lock' # note - this only caches for examples/, not js/
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Gradle cache
uses: gradle/actions/setup-gradle@v4
- name: '[js] Install yarn dependencies'
working-directory: 'js/'
run: yarn install --frozen-lockfile
- name: '[js] Lint'
working-directory: 'js/'
run: yarn lint
continue-on-error: true # TODO: fix all lint issues and remove this line
- name: '[js] Build'
working-directory: 'js/'
run: yarn build
- name: '[Example App] Install yarn dependencies'
working-directory: 'examples/example-react-native-app/'
run: yarn install --frozen-lockfile
- name: '[Example App] Lint'
working-directory: 'examples/example-react-native-app/'
run: yarn lint
continue-on-error: true # TODO: fix all lint issues and remove this line
- name: '[Example App] Build'
working-directory: 'examples/example-react-native-app/'
run: yarn android:build
- name: '[Example Wallet] Install yarn dependencies'
working-directory: 'examples/example-react-native-wallet/'
run: yarn install --frozen-lockfile
- name: '[Example Wallet] Lint'
working-directory: 'examples/example-react-native-wallet/'
run: yarn lint
continue-on-error: true # TODO: fix all lint issues and remove this line
- name: '[Example Wallet] Build'
working-directory: 'examples/example-react-native-wallet/'
run: yarn android:build