Skip to content

Commit

Permalink
Preboot simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Aug 5, 2024
1 parent b17e52c commit 742bf90
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ jobs:
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
- name: Prepare iOS simulator
env:
DEVICE_NAME: ${{matrix.test_targets.IOS_MODEL}}
PLATFORM_VERSION: ${{matrix.test_targets.IOS_VERSION}}
run: |
open -Fn "$(xcode-select -p)/Applications/Simulator.app"
udid=$(xcrun simctl list devices available -j | \
node -p "Object.entries(JSON.parse(fs.readFileSync(0)).devices).filter((x) => x[0].includes('$PLATFORM_VERSION'.replace('.', '-'))).reduce((acc, x) => [...acc, ...x[1]], []).find(({name}) => name === '$DEVICE_NAME').udid")
xcrun simctl bootstatus $udid -b
- run: npm run e2e-test
name: Run functional tests
Expand Down

0 comments on commit 742bf90

Please sign in to comment.