Skip to content

Commit

Permalink
Merge pull request #1840 from ably/fix/1311-single-workflow
Browse files Browse the repository at this point in the history
[SDK-1683] Single workflow with matrix strategy
  • Loading branch information
maratal authored Jan 10, 2024
2 parents 4573d6f + b9e17f0 commit 29d4532
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 314 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/carthage.yaml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Examples Test

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: Checkout repo
uses: actions/checkout@v2

- name: Select Xcode (14.2)
run: |
sudo xcode-select -s /Applications/Xcode_14.2.app
echo "Selected Xcode version:"
xcodebuild -version
- name: Environment Info
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_ios
- 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
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: SPM Installation
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
working-directory: ./Examples/AblyPush
run: |
xcodebuild build -scheme "AblyPushExample" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug"
124 changes: 0 additions & 124 deletions .github/workflows/integration-test-iOS16_2.yaml

This file was deleted.

119 changes: 0 additions & 119 deletions .github/workflows/integration-test-tvOS16_1.yaml

This file was deleted.

Loading

0 comments on commit 29d4532

Please sign in to comment.