-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdev.yml
More file actions
83 lines (74 loc) · 1.92 KB
/
dev.yml
File metadata and controls
83 lines (74 loc) · 1.92 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
75
76
77
78
79
80
81
82
83
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 / pnpm versions are mirrored from package.json (engines.node,
# packageManager). dev validates engines.node matches the version below on
# every `dev up`, so drift is caught automatically. If you bump one, bump
# both.
- node:
version: v22.14.0
package_manager: pnpm@10.33.1
- custom:
name: Remove stale Yarn artifacts
met?: test ! -d .yarn
meet: |
rm -rf .yarn
- custom:
name: Install NPM dependencies
met?: ls -l | grep node_modules
meet: |
pnpm install
- 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: |
pnpm run pod-install
- custom:
name: Build node module
met?: (cd modules/@shopify/checkout-sheet-kit && ls -l | grep lib)
meet: |
pnpm module build
check:
lint_swift: ./scripts/lint_swift
lint_module: pnpm module lint
lint_sample: pnpm sample lint
commands:
server:
desc: 'Start development server'
run: pnpm sample start --reset-cache
ios:
desc: 'Run iOS simulator'
run: pnpm sample ios
android:
desc: 'Run Android emulator'
run: pnpm sample android
clean:
desc: 'rm -rf all generated directories'
run: |
pnpm module clean
pnpm sample clean
pnpm 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