Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 26 additions & 3 deletions .github/workflows/abtesting.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: A/B Testing

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -34,7 +31,32 @@
SAMPLE: ABTesting

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-15
env:
SPM: false
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd abtesting/LegacyABTestingQuickstart
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
cd ..
../scripts/install_prereqs/abtesting.sh
- name: Build Swift
run: ./scripts/test.sh
env:
LEGACY: true
SWIFT_SUFFIX: ""
OS: iOS
DEVICE: iPhone 16
spm:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-15
strategy:
Expand Down Expand Up @@ -70,6 +92,7 @@
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/analytics.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Analytics

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -30,49 +27,53 @@
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
cocoapods:
name: cocoapods - ${{ matrix.os }}
runs-on: macOS-15
strategy:
matrix:
# TODO: Re-enable when ODM2 catalyst support is investigated
# os: [iOS, catalyst, tvOS, macOS]
os: [iOS, tvOS, macOS]
xcode: ["16.4"]
include:
- os: iOS
device: iPhone 16
test: true
# TODO: Re-enable when ODM2 catalyst support is investigated
# - 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
test: true
- os: macOS
device: localhost
scheme: AnalyticsExampleMac
test: true

env:
SPM: true
SPM: false
LEGACY: false
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
SCHEME: ${{ matrix.scheme || 'AnalyticsExample' }}
DIR: analytics
SCHEME: ${{ matrix.scheme }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
- name: Setup
run: |
cd analytics
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/analytics.sh
- name: Build Swift
run: ./scripts/test.sh
env:
TEST: ${{ matrix.test }}
SWIFT_SUFFIX: ""

#TODO: Add `spm` job.

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
25 changes: 12 additions & 13 deletions .github/workflows/authentication.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Authentication

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -30,25 +27,27 @@
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
spm:
cocoapods:
name: cocoapods
runs-on: macOS-15
env:
SPM: false
LEGACY: false
OS: iOS
SETUP: authentication
SPM: true
DIR: authentication
DEVICE: iPhone 16
TEST: false
SCHEME: AuthenticationExample
steps:
- name: Checkout
uses: actions/checkout@master
- name: Xcode
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Setup
run: |
cd authentication
gem install bundler
bundle install
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${OS})
bundle exec pod install --repo-update
../scripts/install_prereqs/authentication.sh
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
Comment on lines +31 to +53

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
3 changes: 0 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: check

permissions:
contents: read

on:
pull_request:
push:
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Remote Config

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -30,22 +27,28 @@
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
spm:
cocoapods:
name: cocoapods
runs-on: macOS-15
env:
OS: iOS
DEVICE: iPhone 16
DIR: config
SPM: true
SCHEME: ConfigExample
SPM: false
LEGACY: false
SWIFT_SUFFIX: ""
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
- 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
run: ./scripts/test.sh
env:
OS: iOS
DEVICE: iPhone 16
Comment on lines +31 to +54

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
29 changes: 26 additions & 3 deletions .github/workflows/crashlytics.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Crashlytics

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -30,7 +27,32 @@
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
runs-on: macOS-15
env:
SPM: false
LEGACY: true
OS: iOS
DEVICE: iPhone 16
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd crashlytics/LegacyCrashlyticsQuickstart
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
cd ..
../scripts/install_prereqs/crashlytics.sh
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift
spm:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-15
strategy:
Expand All @@ -57,6 +79,7 @@
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Database

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -30,28 +27,31 @@
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
spm-buildonly:
name: spm (non-SwiftUI)
cocoapods:
name: cocoapods
runs-on: macOS-15
env:
SPM: false
LEGACY: false
OS: iOS
SPM: true
DIR: database
DEVICE: iPhone 16
TEST: false
SCHEME: DatabaseExample
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
gem install xcpretty
cd database
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/database.sh
- name: Build Swift
run: ./scripts/test.sh

env:
SWIFT_SUFFIX: Swift
spm:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-15
strategy:
Expand All @@ -75,6 +75,7 @@
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/firebaseai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
OS: ${{ matrix.platform }}
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: Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
- name: Setup
run: |
gem install xcpretty
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Firestore

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -30,22 +27,27 @@
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
spm:
cocoapods:
name: cocoapods
runs-on: macOS-15
env:
SPM: true
SPM: false
LEGACY: false
OS: iOS
DIR: firestore
DEVICE: iPhone 16
TEST: false
SCHEME: FirestoreExample
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd firestore
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/firestore.sh
- name: Build
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
Comment on lines +31 to +53

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
5 changes: 2 additions & 3 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Functions

permissions:
contents: read

on:
push:
branches: [ main ]
Expand Down Expand Up @@ -51,6 +48,8 @@ jobs:
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
Expand Down
Loading
Loading