-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdev.yml
More file actions
74 lines (65 loc) · 1.55 KB
/
dev.yml
File metadata and controls
74 lines (65 loc) · 1.55 KB
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
70
71
72
73
74
name: checkout-sheet-kit-react-native
dev.edition: 2024
type: node
up:
- packages:
- swiftlint
- sccache
- ruby
- xcode:
version: "26.2"
runtimes:
ios:
- version: 23C54 # 26.2
architecture_variant: arm64
- node:
version: v22.14.0
yarn: 1.22.22
- custom:
name: Install NPM dependencies
met?: ls -l | grep node_modules
meet: |
yarn
- custom:
name: Install gems
met?: (cd sample/ios && bundle check)
meet: |
(cd sample/ios && bundle install)
- custom:
name: Install pods
met?: (cd sample/ios && bundle exec pod check --ignore-dev-pods)
meet: |
yarn pod-install
- custom:
name: Build node module
met?: (cd modules/@shopify/checkout-sheet-kit && ls -l | grep lib)
meet: |
yarn module build
check:
lint_swift: ./scripts/lint_swift
lint_module: yarn module lint
lint_sample: yarn sample lint
commands:
server:
desc: 'Start development server'
run: yarn sample start --reset-cache
ios:
desc: 'Run iOS simulator'
run: yarn sample ios
android:
desc: 'Run Android emulator'
run: yarn sample android
clean:
desc: 'rm -rf all generated directories'
run: |
yarn module clean
yarn sample clean
yarn clean
if command -v sccache >/dev/null 2>&1; then
sccache --stop-server 2>/dev/null || true
fi
echo "✅ Cleaned root, module and sample workspaces"
fix:
desc: Fix linting
run: |
./scripts/lint_swift fix