Skip to content

Commit

Permalink
ci: better iphone selection
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Oct 9, 2024
1 parent dc42196 commit a5c88f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,21 @@ jobs:
fi
yarn test:ios:build
- name: Run simulatpr
- name: Run simulator
id: simulator
uses: futureware-tech/simulator-action@v1
with:
# iPhone 15 ios 17.5
udid: '58E32105-8D8F-41F4-83F3-C7D88B1E7436'
os: 'iOS'
os_version: "=17.5"
model: 'iPhone 15'

- name: Run tests
timeout-minutes: 10
run: |
cd packages/icon-explorer
ln -s .owl/baseline baseline-${{ matrix.arch }}
tmp=$(mktemp)
jq '.ios.device = "{{ steps.simulator.outputs.udid }}"' owl.config.json > "$tmp" && mv "$tmp" owl.config.json
yarn test:ios:run
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion packages/icon-explorer/owl.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"workspace": "ios/IconExplorer.xcworkspace",
"scheme": "ReactTestApp",
"configuration": "Debug",
"device": "58E32105-8D8F-41F4-83F3-C7D88B1E7436"
"device": "iPhone 15"
},
"android": {
"packageName": "com.microsoft.reacttestapp"
Expand Down

0 comments on commit a5c88f2

Please sign in to comment.