Skip to content

Commit 3909c00

Browse files
authored
ci: run iOS func tests on GHA (manual only) (#541)
* ci: run iOS func tests on GHA * Update functional-test.yml
1 parent e73179b commit 3909c00

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/functional-test.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Functional Tests
2+
3+
on:
4+
# Run by manual at this time
5+
workflow_dispatch:
6+
# pull_request:
7+
# branches:
8+
# - master
9+
10+
jobs:
11+
test:
12+
runs-on: macos-12
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Install Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 'lts/*'
21+
22+
- name: Select Xcode
23+
uses: maxim-lobanov/setup-xcode@v1
24+
with:
25+
xcode-version: 14.2
26+
- run: defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
27+
28+
# Start Appium
29+
- run: npm install -g appium
30+
- run: |
31+
appium driver install xcuitest
32+
appium driver run xcuitest build-wda
33+
nohup appium server --relaxed-security > appium.log &
34+
35+
- name: Set up Ruby
36+
uses: ruby/setup-ruby@v1
37+
with:
38+
ruby-version: 3.2
39+
- name: Install dependencies
40+
run: bundle install
41+
42+
# Run tests
43+
- run: bundle exec rake test:func:ios TESTS=test/functional/ios/webdriver/create_session_test.rb,test/functional/ios/webdriver/w3c_actions_test.rb
44+
displayName: Run tests func_test_ios_webdriver1
45+
env:
46+
IGNORE_VERSION_SKIP: true

0 commit comments

Comments
 (0)