forked from facebookarchive/WebDriverAgent
-
Notifications
You must be signed in to change notification settings - Fork 390
38 lines (32 loc) · 1.01 KB
/
functional-test.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
name: Functional Tests
on: [pull_request]
jobs:
test:
env:
CI: true
_FORCE_LOGS: 1
XCODE_VERSION: 15.3
DEVICE_NAME: iPhone 15 Plus
PLATFORM_VERSION: 17.4
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "${{ env.XCODE_VERSION }}"
- run: |
npm install
mkdir -p ./Resources/WebDriverAgent.bundle
name: Install dev dependencies
- run: xcrun simctl list devices available
- run: |
target_sim_id=$(xcrun simctl list devices available | grep "$DEVICE_NAME (" | cut -d "(" -f2 | cut -d ")" -f1)
open -Fn "$(xcode-select -p)/Applications/Simulator.app"
xcrun simctl bootstatus $target_sim_id -b
name: Preboot Simulator
- run: npm run e2e-test
name: Run functional tests