Skip to content

Commit f6642ef

Browse files
authored
Refactoring archive testing to a single yml file. (#6510)
* Refactoring archive testing to a single yml file. This reduces the duplication in each of the workflow files. This also will make archive testing with SwiftPM more straightforward. * Prefixed with 'pod' name * Commenting out to run archive testing on PR for now. * Put array on single line The yml won't be parsed unless the `pod` array is on a single line. * Fix to run on PRs to the yml itself. * Fix naming of AppDistro * Remove schemes.
1 parent f8b6e8f commit f6642ef

16 files changed

+47
-226
lines changed

.github/workflows/abtesting.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,3 @@ jobs:
113113
run: |
114114
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
115115
FirebaseABTesting.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
116-
117-
archive-cron:
118-
# Don't run on private repo.
119-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
120-
121-
runs-on: macOS-latest
122-
strategy:
123-
matrix:
124-
target: [ios, tvos, macos]
125-
steps:
126-
- uses: actions/checkout@v2
127-
- name: Setup Bundler
128-
run: scripts/setup_bundler.sh
129-
- name: Setup project and archive
130-
run: scripts/test_archiving.sh FirebaseABTesting ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/appdistribution.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,3 @@ jobs:
4949
run: |
5050
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
5151
--platforms=${{ matrix.target }} ${{ matrix.flags }}
52-
53-
archive-cron:
54-
# Don't run on private repo.
55-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
56-
57-
runs-on: macOS-latest
58-
strategy:
59-
matrix:
60-
target: [ios]
61-
steps:
62-
- uses: actions/checkout@v2
63-
- name: Setup Bundler
64-
run: scripts/setup_bundler.sh
65-
- name: Setup project and archive
66-
run: scripts/test_archiving.sh FirebaseAppDistribution ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/archiving.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: archiving
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/archiving.yml'
7+
schedule:
8+
# Run every day at 2am (PST) - cron uses UTC times
9+
# This is set to 3 hours after zip workflow finishes so zip testing can run after.
10+
- cron: '0 10 * * *'
11+
12+
jobs:
13+
# Archive tests for pods that support iOS only.
14+
pods-ios-only-cron:
15+
# Don't run on private repo.
16+
if: github.repository != 'FirebasePrivate/firebase-ios-sdk'
17+
18+
runs-on: macOS-latest
19+
strategy:
20+
matrix:
21+
# These need to be on a single line or else the formatting won't validate.
22+
pod: ["FirebaseAppDistribution", "FirebaseDynamicLinks", "FirebaseInAppMessaging"]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Setup Bundler
26+
run: scripts/setup_bundler.sh
27+
- name: Setup project and archive
28+
run: scripts/test_archiving.sh ${{ matrix.pod }} ios ArchiveOutputs/ios.xcarchive
29+
30+
31+
# Archive tests for pods that support iOS, tvOS, and macOS.
32+
pods-ios-tvos-macos-cron:
33+
# Don't run on private repo.
34+
if: github.repository != 'FirebasePrivate/firebase-ios-sdk'
35+
36+
runs-on: macOS-latest
37+
strategy:
38+
matrix:
39+
target: [ios, tvos, macos]
40+
# These need to be on a single line or else the formatting won't validate.
41+
pod: ["FirebaseABTesting", "FirebaseAuth", "FirebaseCore", "FirebaseCrashlytics", "FirebaseDatabase", "FirebaseFirestore", "FirebaseFunctions", "FirebaseMessaging", "FirebaseRemoteConfig", "FirebaseStorage", "GoogleDataTransport"]
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Setup Bundler
45+
run: scripts/setup_bundler.sh
46+
- name: Setup project and archive
47+
run: scripts/test_archiving.sh ${{ matrix.pod }} ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/auth.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,3 @@ jobs:
148148
run: |
149149
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
150150
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
151-
152-
archive-cron:
153-
# Don't run on private repo.
154-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
155-
156-
runs-on: macOS-latest
157-
strategy:
158-
matrix:
159-
target: [ios, tvos, macos]
160-
steps:
161-
- uses: actions/checkout@v2
162-
- name: Setup Bundler
163-
run: scripts/setup_bundler.sh
164-
- name: Setup project and archive
165-
run: scripts/test_archiving.sh FirebaseAuth ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/core.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,6 @@ jobs:
6969
- name: Setup project and Build Catalyst
7070
run: scripts/test_catalyst.sh FirebaseCore build
7171

72-
archive-cron:
73-
# Don't run on private repo.
74-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
75-
76-
runs-on: macOS-latest
77-
strategy:
78-
matrix:
79-
target: [ios, tvos, macos]
80-
steps:
81-
- uses: actions/checkout@v2
82-
- name: Setup Bundler
83-
run: scripts/setup_bundler.sh
84-
- name: Setup project and archive
85-
run: scripts/test_archiving.sh FirebaseCore ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive
86-
8772
core-cron-only:
8873
# Don't run on private repo.
8974
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'

.github/workflows/crashlytics.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,3 @@ jobs:
122122
run: |
123123
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
124124
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
125-
126-
archive-cron:
127-
# Don't run on private repo.
128-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
129-
130-
runs-on: macOS-latest
131-
strategy:
132-
matrix:
133-
target: [ios, tvos, macos]
134-
steps:
135-
- uses: actions/checkout@v2
136-
- name: Setup Bundler
137-
run: scripts/setup_bundler.sh
138-
- name: Setup project and archive
139-
run: scripts/test_archiving.sh FirebaseCrashlytics ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/database.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,3 @@ jobs:
136136
run: scripts/setup_bundler.sh
137137
- name: PodLibLint database Cron
138138
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDatabase.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
139-
140-
archive-cron:
141-
# Don't run on private repo.
142-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
143-
144-
runs-on: macOS-latest
145-
strategy:
146-
matrix:
147-
target: [ios, tvos, macos]
148-
steps:
149-
- uses: actions/checkout@v2
150-
- name: Setup Bundler
151-
run: scripts/setup_bundler.sh
152-
- name: Setup project and archive
153-
run: scripts/test_archiving.sh FirebaseDatabase ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/datatransport.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,3 @@ jobs:
7676
- name: PodLibLint DataTransport Cron
7777
run: |
7878
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
79-
80-
archive-cron:
81-
# Don't run on private repo.
82-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
83-
84-
runs-on: macOS-latest
85-
strategy:
86-
matrix:
87-
target: [ios, tvos, macos]
88-
steps:
89-
- uses: actions/checkout@v2
90-
- name: Setup Bundler
91-
run: scripts/setup_bundler.sh
92-
- name: Setup project and archive
93-
run: scripts/test_archiving.sh GoogleDataTransport ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

.github/workflows/dynamiclinks.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,3 @@ jobs:
8484
- name: Test swift quickstart
8585
if: ${{ always() }}
8686
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks swift)
87-
88-
archive-cron:
89-
# Don't run on private repo.
90-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
91-
92-
runs-on: macOS-latest
93-
strategy:
94-
matrix:
95-
target: [ios]
96-
steps:
97-
- uses: actions/checkout@v2
98-
- name: Setup Bundler
99-
run: scripts/setup_bundler.sh
100-
- name: Setup project and archive
101-
run: scripts/test_archiving.sh FirebaseDynamicLinks ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive
102-

.github/workflows/firestore.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,3 @@ jobs:
240240
- name: Test swift quickstart
241241
run: ([ -z $plist_secret ] ||
242242
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore)
243-
244-
archive-cron:
245-
# Don't run on private repo.
246-
if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
247-
248-
runs-on: macOS-latest
249-
strategy:
250-
matrix:
251-
target: [ios, tvos, macos]
252-
steps:
253-
- uses: actions/checkout@v2
254-
- name: Setup Bundler
255-
run: scripts/setup_bundler.sh
256-
- name: Setup project and archive
257-
run: scripts/test_archiving.sh FirebaseFirestore ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

0 commit comments

Comments
 (0)