Skip to content

Commit 6e89274

Browse files
authored
Add spm workflows to AppCheck GHA (#8461)
* Add `spm` workflows to AppCheck GHA * Review * Target specific AppCheck schemes * Fix scheme names * Fix scheme names 2 * Re-enable cron
1 parent 540b7e8 commit 6e89274

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/app_check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,32 @@ jobs:
7070
- name: PodLibLint FirebaseAppCheck Cron
7171
# TODO: Remove --allow-warnings when stabilized.
7272
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppCheck.podspec --platforms=ios ${{ matrix.flags }}
73+
74+
spm:
75+
# Don't run on private repo unless it is a PR.
76+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
77+
runs-on: macOS-latest
78+
steps:
79+
- uses: actions/checkout@v2
80+
- name: Initialize xcodebuild
81+
run: scripts/setup_spm_tests.sh
82+
- name: iOS Unit Tests
83+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit iOS spm
84+
- name: iOS Swift Unit Tests
85+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnitSwift iOS spm
86+
87+
spm-cron:
88+
# Don't run on private repo.
89+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
90+
runs-on: macOS-latest
91+
strategy:
92+
matrix:
93+
target: [tvOS, macOS, catalyst]
94+
steps:
95+
- uses: actions/checkout@v2
96+
- name: Initialize xcodebuild
97+
run: scripts/setup_spm_tests.sh
98+
- name: Unit Tests
99+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit ${{ matrix.target }} spm
100+
- name: Swift Unit Tests
101+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnitSwift ${{ matrix.target }} spm

0 commit comments

Comments
 (0)