Skip to content

Commit 2e5c0f3

Browse files
authored
Migrate FIAM CI to GHA (#7034)
1 parent 16e3ecf commit 2e5c0f3

File tree

2 files changed

+48
-8
lines changed

2 files changed

+48
-8
lines changed

.github/workflows/inappmessaging.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,35 @@ on:
1313

1414
jobs:
1515

16+
pod_lib_lint:
17+
# Don't run on private repo unless it is a PR.
18+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
19+
20+
runs-on: macOS-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Setup Bundler
24+
run: scripts/setup_bundler.sh
25+
- name: FirebaseInAppMessaging
26+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec
27+
28+
tests:
29+
# Don't run on private repo unless it is a PR.
30+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
31+
32+
runs-on: macOS-latest
33+
strategy:
34+
matrix:
35+
platform: [iOS, iPad]
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Setup Bundler
39+
run: scripts/setup_bundler.sh
40+
- name: Prereqs
41+
run: scripts/install_prereqs.sh InAppMessaging ${{ matrix.platform }} xcodebuild
42+
- name: Build and test
43+
run: scripts/third_party/travis/retry.sh scripts/build.sh InAppMessaging ${{ matrix.platform }} xcodebuild
44+
1645
spm:
1746
# Don't run on private repo unless it is a PR.
1847
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
@@ -26,6 +55,25 @@ jobs:
2655
- name: iOS Unit Tests
2756
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseInAppMessaging-Beta iOS spmbuildonly
2857

58+
fiam-cron-only:
59+
# Don't run on private repo.
60+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
61+
62+
runs-on: macos-latest
63+
strategy:
64+
matrix:
65+
flags: [
66+
'--use-static-frameworks',
67+
'--use-libraries'
68+
]
69+
needs: pod_lib_lint
70+
steps:
71+
- uses: actions/checkout@v2
72+
- name: Setup Bundler
73+
run: scripts/setup_bundler.sh
74+
- name: PodLibLint InAppMessaging Cron
75+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec --platforms=ios ${{ matrix.flags }}
76+
2977
quickstart:
3078
# Don't run on private repo unless it is a PR.
3179
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'

.travis.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,6 @@ jobs:
113113
script:
114114
- travis_retry ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
115115

116-
- stage: test
117-
env:
118-
- PROJECT=InAppMessaging PLATFORM=iOS METHOD=xcodebuild
119-
before_install:
120-
- ./scripts/if_changed.sh ./scripts/install_prereqs.sh
121-
script:
122-
- travis_retry ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
123-
124116
- stage: test
125117
if: type = cron
126118
env:

0 commit comments

Comments
 (0)