File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 19
19
name : Test Library (Darwin)
20
20
steps :
21
21
- uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
22
24
- name : Select Xcode 15.2
23
25
run : sudo xcode-select -s /Applications/Xcode_15.2.app
26
+ - uses : actions/cache@v3
27
+ with :
28
+ path : /tmp/derived-data
29
+ key : derived-data-cache-
24
30
- name : Run tests
25
31
run : make test-library
26
32
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ PLATFORM_MACOS = macOS
3
3
PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
4
4
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
5
5
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 9 (41mm)
6
- EXAMPLE = Examples
7
6
8
7
test-all : test-library test-linux
9
8
10
9
test-library :
11
10
for platform in " $( PLATFORM_IOS) " " $( PLATFORM_MACOS) " " $( PLATFORM_MAC_CATALYST) " " $( PLATFORM_TVOS) " " $( PLATFORM_WATCHOS) " ; do \
12
- xcodebuild test \
13
- -skipMacroValidation \
14
- -workspace supabase-swift.xcworkspace \
15
- -scheme Supabase \
16
- -destination platform=" $$ platform" || exit 1; \
11
+ set -o pipefail && \
12
+ xcodebuild test \
13
+ -skipMacroValidation \
14
+ -workspace supabase-swift.xcworkspace \
15
+ -scheme Supabase \
16
+ -derivedDataPath /tmp/derived-data \
17
+ -destination platform=" $$ platform" | xcpretty; \
17
18
done ;
18
19
19
20
test-linux :
@@ -43,11 +44,12 @@ test-docs:
43
44
44
45
build-examples :
45
46
for scheme in Examples UserManagement SlackClone; do \
46
- xcodebuild build \
47
- -skipMacroValidation \
48
- -workspace supabase-swift.xcworkspace \
49
- -scheme " $$ scheme" \
50
- -destination platform=" $( PLATFORM_IOS) " || exit 1; \
47
+ set -o pipefail && \
48
+ xcodebuild build \
49
+ -skipMacroValidation \
50
+ -workspace supabase-swift.xcworkspace \
51
+ -scheme " $$ scheme" \
52
+ -destination platform=" $( PLATFORM_IOS) " | xcpretty; \
51
53
done
52
54
53
55
format :
You can’t perform that action at this time.
0 commit comments