6
6
- ' .github/workflows/spm.yml'
7
7
- ' Package.swift'
8
8
- ' Firebase**'
9
+ - ' Google*'
9
10
schedule :
10
11
# Run every day at 11pm (PST) - cron uses UTC times
11
12
- cron : ' 0 7 * * *'
12
13
14
+ # This workflow builds and tests the Swift Package Manager. Only iOS runs on PRs
15
+ # because each platform takes 15-20 minutes after adding Firestore.
16
+
17
+ # TODO: Write a script to filter the Package.swift for each individual product
18
+ # and run just those tests in the product specific workflows. Then this workflow
19
+ # should be the full SPM tests for all platforms only on cron.
20
+
13
21
jobs :
14
22
swift-build-run :
15
23
# Don't run on private repo unless it is a PR.
@@ -23,11 +31,25 @@ jobs:
23
31
run : swift build
24
32
- name : Initialize xcodebuild
25
33
run : xcodebuild -list
26
- - name : Core ObjC Unit Tests macOS
27
- run : scripts/third_party/travis/retry.sh xcodebuild -scheme Firebase-Package test | xcpretty
28
34
- name : Core ObjC Unit Tests iOS
29
35
run : scripts/third_party/travis/retry.sh xcodebuild -scheme Firebase-Package test -sdk
30
36
iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' | xcpretty
37
+
38
+ cron-only :
39
+ # Don't run on private repo.
40
+ if : github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
41
+
42
+ runs-on : macOS-latest
43
+ steps :
44
+ - uses : actions/checkout@v2
45
+ - name : Xcode 12
46
+ run : sudo xcode-select -s /Applications/Xcode_12_beta.app/Contents/Developer
47
+ - name : Build
48
+ run : swift build
49
+ - name : Initialize xcodebuild
50
+ run : xcodebuild -list
51
+ - name : Core ObjC Unit Tests macOS
52
+ run : scripts/third_party/travis/retry.sh xcodebuild -scheme Firebase-Package test | xcpretty
31
53
- name : Core ObjC Unit Tests tvOS
32
54
run : scripts/third_party/travis/retry.sh xcodebuild -scheme Firebase-Package test -sdk
33
55
appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty
0 commit comments