fix: do nothing for an empty array in w3c actions #578
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] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
test_targets: | |
- XCODE_VERSION: 15.3 | |
IOS_VERSION: 17.4 | |
IOS_MODEL: iPhone 15 Plus | |
- XCODE_VERSION: 14.3.1 | |
IOS_VERSION: 16.4 | |
IOS_MODEL: iPhone 14 Plus | |
# 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: ${{matrix.test_targets.XCODE_VERSION}} | |
- run: | | |
npm install | |
mkdir -p ./Resources/WebDriverAgent.bundle | |
name: Install dev dependencies | |
- uses: futureware-tech/simulator-action@v3 | |
with: | |
model: ${{matrix.test_targets.IOS_MODEL}} | |
os: iOS | |
os_version: ${{matrix.test_targets.IOS_VERSION}} | |
erase_before_boot: true | |
# to prevent unexpected shutdown failure error | |
shutdown_after_job: false | |
name: Preboot Simulator | |
- run: npm run e2e-test | |
name: Run functional tests | |
env: | |
CI: true | |
_FORCE_LOGS: 1 | |
DEVICE_NAME: ${{matrix.test_targets.IOS_MODEL}} | |
PLATFORM_VERSION: ${{matrix.test_targets.IOS_VERSION}} |