-
-
Notifications
You must be signed in to change notification settings - Fork 35
54 lines (48 loc) · 1.24 KB
/
run_example.yml
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
name: Run example
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: macos-14
env:
PLATFORM_VERSION: '17.4'
XCODE_VERSION: '15.3'
DEVICE_NAME: iPhone 15 Plus
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- run: defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
- run: xcrun simctl list
- name: Set up Appium env
uses: actions/setup-node@v3
with:
node-version: 16
check-latest: true
- name: Install Appium XCUITest
run: |
npm install -g appium
appium driver install xcuitest
- name: run Appium background
run: |
nohup appium --base-path=/wd/hub --log-timestamp --log-no-colors > appium.out 2>&1 &
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Run example
run: |
cd example
bundle install
bundle exec rspec spec/ios_example_spec.rb
- name: Upload appium.out
uses: actions/[email protected]
if: failure()
with:
path: appium.out