Skip to content

Commit

Permalink
add support to record videos (#1776)
Browse files Browse the repository at this point in the history
* enable video record

* Update run-detox-tests.sh

* Update ios.yml

* adjusts

* Update ios.yml

* Update utils.js.ejs

* Update ios.yml

* Update utils.js.ejs

* Update ios.yml
  • Loading branch information
mshima authored Jun 7, 2024
1 parent c60d7aa commit fa80fac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ jobs:
if: steps.compare.outputs.equals != 'true'
working-directory: ${{ github.workspace }}/backend
- run: npm run e2e:test:ios
timeout-minutes: 15
env:
DETOX_RECORD_VIDEOS: "${{ contains(github.event.pull_request.labels.*.name, 'pr: record-videos') && 'all' || 'none' }}"
if: steps.compare.outputs.equals != 'true'
- uses: actions/upload-artifact@v4
if: steps.compare.outputs.equals != 'true' && always()
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/run-detox-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fi

# run the detox tests
if [ "$PLATFORM" = "ios" ]; then
npm run test:e2e -- --record-videos $DETOX_RECORD_VIDEO
npm run test:e2e
else
bash ${GITHUB_WORKSPACE}/${SCRIPT_DIR}/start-android-emulator.sh
detox test --configuration android.emu.release
Expand Down

0 comments on commit fa80fac

Please sign in to comment.