Skip to content

Commit

Permalink
Add CI workflow for Swift Package Manager (#8)
Browse files Browse the repository at this point in the history
Added a GitHub workflow to build and run SPM test targets.
  • Loading branch information
andrewheard authored Aug 10, 2023
1 parent ad9a140 commit 5a28b06
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: spm

on:
pull_request:
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
- cron: '0 7 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
swift-build-run:
runs-on: macOS-latest
strategy:
matrix:
target: [iOS, tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- name: Setup Scripts Directory
run: ./setup-scripts.sh
- name: Initialize xcodebuild
run: xcodebuild -list
- name: iOS Unit Tests
run: scripts/third_party/travis/retry.sh scripts/build.sh AppCheck ${{ matrix.target }} spm
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.7
2 changes: 2 additions & 0 deletions setup-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ cd firebase-ios-sdk
git checkout master -- scripts
cd ..
ln -s firebase-ios-sdk/scripts scripts

gem install xcpretty

0 comments on commit 5a28b06

Please sign in to comment.