mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
21dc3abe1b
# Objective - Test mobile example on real devices ## Solution - Use [BrowserStack](https://www.browserstack.com) to have access to [real devices](https://www.browserstack.com/list-of-browsers-and-platforms/app_automate) - [App Automate](https://www.browserstack.com/app-automate) to run the example - [App Percy](https://www.browserstack.com/app-percy) to compare the screenshot - Added a daily/manual CI job that will build for iOS and Android, send the apps to BrowserStack, run the app on one iOS device and one Android device, capture a screenshot, send it for visual validation, and archive it in the GitHub action Example run: https://github.com/mockersf/bevy/actions/runs/4521883534 They currently have a bug with the settings to view snapshots, they should be public. I'll raise it to them, and if they don't fix it in time it's possible to work around for everyone to view the results through their API. @cart to get this to work, you'll need - to set up an account on BrowserStack - add the secrets `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` to the Bevy repo - create a project in Percy - add the secret `PERCY_TOKEN` to the Bevy repo and modify the project name line 122 in the `Daily.yml` file
25 lines
No EOL
762 B
JSON
25 lines
No EOL
762 B
JSON
{
|
|
"name": "start-mobile-example",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"mobile": "./node_modules/.bin/wdio mobile.conf.js",
|
|
"android": "OS_VERSION='13.0' DEVICE='Samsung Galaxy S23' ./node_modules/.bin/wdio mobile.conf.js",
|
|
"ios": "OS_VERSION='15' DEVICE='iPhone 13' ./node_modules/.bin/wdio mobile.conf.js",
|
|
"clean": "rm -rf node_modules && rm -f package-lock.json && npm install"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "MIT/Apache2",
|
|
"devDependencies": {
|
|
"@wdio/cli": "^5.20.1",
|
|
"@wdio/local-runner": "^5.20.1",
|
|
"@wdio/mocha-framework": "^5.18.7",
|
|
"browserstack-local": "^1.4.5",
|
|
"@percy/appium-app": "^0.0.7"
|
|
},
|
|
"dependencies": {
|
|
"dotenv": "^16.0.1"
|
|
}
|
|
} |