-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdev.yml
More file actions
71 lines (63 loc) · 2.03 KB
/
dev.yml
File metadata and controls
71 lines (63 loc) · 2.03 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
name: checkout-sheet-kit-swift
type: ios
up:
- packages:
- swiftlint
- swiftformat
- xcbeautify
- rover
- jq
- ruby
- xcode:
version: "26.0"
runtimes:
ios:
- "26.0"
- custom:
name: Ensure Storefront.xcconfig file
met?: |
([ -f "./samples/MobileBuyIntegration/Storefront.xcconfig" ] || exit 1)
meet: ./scripts/ensure_storefront_config
- custom:
name: Setup entitlements
met?: |
([ -f "./samples/MobileBuyIntegration/MobileBuyIntegration/MobileBuyIntegration.entitlements" ] || exit 1;)
meet: ./scripts/setup_entitlements
check:
lint: /opt/dev/bin/dev lint
commands:
lint:
aliases: [style]
desc: Check format and lint issues across all Swift files using SwiftLint and SwiftFormat
run: scripts/lint
subcommands:
pod:
aliases: []
desc: Check the build for cocoapods deployement
run: bundle exec pod lib lint --allow-warnings
fix:
desc: Automatically fix format and lint issues where possible
run: scripts/lint fix
build:
subcommands:
packages:
desc: Build both ShopifyCheckoutSheetKit and ShopifyAcceleratedCheckouts packages
run: |
./scripts/xcode_run build ShopifyCheckoutSheetKit
./scripts/xcode_run build ShopifyAcceleratedCheckouts
samples:
desc: Build all sample applications to verify integration
run: ./scripts/build_samples
test:
desc: |
`dev test` - Run all tests for the ShopifyCheckoutSheetKit-Package.
`dev test <test_class_name>` - Run only the specified test class.
run: ./scripts/xcode_run test ShopifyCheckoutSheetKit-Package "$1"
apollo:
subcommands:
download_schema:
desc: "Download GraphQL Schema. Usage: dev apollo download_schema [accelerated|mobile-buy|all]"
run: ./Scripts/apollo_download_schema "$1"
codegen:
desc: "Generate Apollo Client models. Usage: dev apollo codegen [accelerated|mobile-buy|all]"
run: ./Scripts/apollo_codegen "$1"