This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.55 KB
/
ci.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
name: ci-actions
on: [push]
jobs:
lint:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- uses: actions/cache@v3
with:
path:
ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: actions/cache@v3
with:
path:
example/ios/Pods
key: ${{ runner.os }}-example-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-example-pods-
- run: yarn build:all
- run: yarn lint
- run: yarn prettier:check
- run: yarn documentation
- name: Ensure documentation is up to date
run: ./scripts/ensureDocsAreUpdated.sh
test:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- uses: actions/cache@v3
with:
path:
ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: actions/cache@v3
with:
path:
example/ios/Pods
key: ${{ runner.os }}-example-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-example-pods-
- run: yarn install
- run: yarn build
- run: yarn test