diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index 6f21067..7c16c02 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -17,12 +17,11 @@ jobs: - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: ${{ env.XCODE_VERSION }} - - 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 - xcrun simctl shutdown $target_sim_id - name: Preboot ${{ env.DEVICE_NAME }} + - uses: futureware-tech/simulator-action@v3 + with: + # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md + model: ${{ env.DEVICE_NAME }} + os_version: ${{ env.PLATFORM_VERSION }} - run: brew install python@${PYTHON_VERSION} - run: | brew tap facebook/fb