[SDK-1683] Single workflow with matrix strategy #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Examples Test and Installation | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: macos-latest | |
env: | |
LC_CTYPE: en_US.UTF-8 | |
LANG: en_US.UTF-8 | |
ABLY_ENV: sandbox | |
steps: | |
- name: Check out SDK repo | |
uses: actions/checkout@v2 | |
- name: Select Specific Xcode Version (14.2) | |
run: | | |
sudo xcode-select -s /Applications/Xcode_14.2.app | |
echo "Selected Xcode version:" | |
xcodebuild -version | |
- name: Log environment information | |
run: ./Scripts/log-environment-information.sh | |
- name: Reset Simulators | |
run: xcrun simctl erase all | |
- name: Install Dependencies | |
run: | | |
make submodules | |
bundle install | |
make update_carthage_dependencies | |
- name: Run Examples Tests | |
working-directory: ./Examples/Tests | |
run: | | |
pod repo update | |
pod install | |
bundle exec fastlane scan -s Tests --output-directory "fastlane/test_output/examples/test_iOS16_2" | |
- name: Carthage - Installation Test | |
working-directory: ./Examples/AblyCarthage | |
run: | | |
echo 'Installing Carthage dependencies...' | |
carthage update --use-xcframeworks --platform iOS --no-use-binaries | |
echo 'Building AblyCarthage example...' | |
xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug" | |
- name: Swift Package Manager - Installation Test | |
working-directory: ./ | |
run: | | |
echo 'Current Branch: ' $GITHUB_HEAD_REF | |
echo 'Current Revision (SHA):' $GITHUB_SHA | |
echo Current Path: $(pwd) | |
export PACKAGE_URL=file://$(pwd) | |
export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF | |
export PACKAGE_REVISION=$GITHUB_SHA | |
swift test --package-path Examples/SPM -v | |
- name: Build APNS Example Project | |
working-directory: ./Examples/AblyPush | |
run: | | |
xcodebuild build -scheme "AblyPushExample" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug" |