Skip to content

Commit

Permalink
move rc test to spm
Browse files Browse the repository at this point in the history
  • Loading branch information
morganchen12 committed Jan 24, 2025
1 parent 1df0e6e commit 3fbefa2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ jobs:
runs-on: macOS-15
strategy:
matrix:
os: [iOS, catalyst, tvOS, macOS]
os: [iOS, tvOS, macOS]
xcode: ["16.1"]
include:
- os: iOS
device: iPhone 16
scheme: AnalyticsExample
test: true
- os: catalyst
device: localhost
test: false # disabled due to a permissions error on launch (OSStatus -54).
- os: tvOS
device: Apple TV 4K (3rd generation) (at 1080p)
scheme: AnalyticsExampleTV
Expand All @@ -50,21 +48,22 @@ jobs:
scheme: AnalyticsExampleMac
test: true
env:
OS: ${{ matrix.os }}
SETUP: analytics
SPM: true
LEGACY: false
OS: ${{ matrix.os }}
DIR: analytics
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
SCHEME: ${{ matrix.scheme }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd analytics
../scripts/install_prereqs/analytics.sh
- name: Build Swift
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh
env:
TEST: ${{ matrix.test }}
SWIFT_SUFFIX: ""
15 changes: 9 additions & 6 deletions .github/workflows/authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@ jobs:
name: spm
runs-on: macOS-15
env:
OS: iOS
SETUP: authentication
SPM: true
LEGACY: false
OS: iOS
DIR: authentication
DEVICE: iPhone 16
TEST: true
SCHEME: AuthenticationExample
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd authentication
../scripts/install_prereqs/authentication.sh
- name: Build Swift
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${OS})
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
8 changes: 2 additions & 6 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ env:

jobs:
cocoapods:
name: cocoapods
name: spm
runs-on: macOS-15
env:
SPM: false
SPM: true
LEGACY: false
SWIFT_SUFFIX: ""
TEST: true
Expand All @@ -41,10 +41,6 @@ jobs:
- name: Setup
run: |
cd config
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/config.sh
xcrun simctl boot "iPhone 16"
- name: Build Swift
Expand Down

0 comments on commit 3fbefa2

Please sign in to comment.