ci: use macos14 for functional test #549
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |