Skip to content

Commit

Permalink
Merge pull request #1544 from firebase/nc/storage-ci
Browse files Browse the repository at this point in the history
[Infra] Add SPM CI workflow for Functions QS and Storage QS
  • Loading branch information
ncooke3 authored Dec 20, 2023
2 parents a3c6778 + 6ba32e5 commit 3df121f
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,37 @@ jobs:
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift

spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-12
strategy:
matrix:
xcode: ["14.2"]
os: [iOS, tvOS, macOS]
include:
- os: iOS
device: iPhone 12
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
- os: macOS
device: localhost
env:
SETUP: functions
SPM: true
DIR: functions/FunctionsExample
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: false
XCODE_VERSION: ${{ matrix.xcode }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh
34 changes: 34 additions & 0 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,37 @@ jobs:
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift

spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-12
strategy:
matrix:
xcode: ["14.2"]
os: [iOS, tvOS, macOS]
include:
- os: iOS
device: iPhone 12
- os: tvOS
device: Apple TV 4K (at 1080p) (2nd generation)
- os: macOS
device: localhost
env:
SETUP: storage
SPM: true
DIR: storage/StorageExample
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: false
XCODE_VERSION: ${{ matrix.xcode }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh

0 comments on commit 3df121f

Please sign in to comment.