-
Notifications
You must be signed in to change notification settings - Fork 25
70 lines (58 loc) · 2.04 KB
/
examples.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Examples Test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
check:
runs-on: macos-13
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 (15.1)
run: |
sudo xcode-select -s /Applications/Xcode_15.1.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_iOS17_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 15" -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 15" -configuration "Debug"