Skip to content

Commit

Permalink
fix artifact names to be unique in run scope
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Sep 10, 2024
1 parent 6999da7 commit 6038996
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ jobs:
run: |
adb shell pkill -SIGINT screenrecord || echo "exited with code $?" && exit 0
sleep 5 # prevent video file corruption
adb pull /sdcard/screenrecord.mp4 ~/maestro_screenrecord.mp4
adb pull /sdcard/screenrecord.mp4 ~/screenrecord.mp4
- name: Upload ~/.maestro artifacts
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: maestro-e2e-output
name: maestro-root-dir-android
path: ~/.maestro
retention-days: 7
include-hidden-files: true
Expand All @@ -177,8 +177,8 @@ jobs:
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: maestro_screenrecord.mp4
path: ~/maestro_screenrecord.mp4
name: maestro-screenrecord-android.mp4
path: ~/screenrecord.mp4
retention-days: 7

test-local-ios:
Expand Down Expand Up @@ -228,16 +228,24 @@ jobs:
working-directory: ${{ github.workspace }}/e2e
run: ./install_apps

- name: Start screen recording
run: |
xcrun simctl io booted recordVideo --codec h264 ~/screenrecord.mp4 &
echo $! > ~/screenrecord.pid
- name: Run tests
working-directory: ${{ github.workspace }}/e2e
timeout-minutes: 30
run: ./run_tests

- name: Stop screen recording
run: kill -SIGINT "$(cat ~/screenrecord.pid)"

- name: Upload ~/.maestro artifacts
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: maestro-e2e-output
name: maestro-root-dir-ios
path: ~/.maestro
retention-days: 7
include-hidden-files: true
Expand All @@ -251,3 +259,11 @@ jobs:
retention-days: 7
include-hidden-files: true

- name: Upload screen recording of AVD
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: maestro-screenrecord-ios.mp4
path: ~/screenrecord.mp4
retention-days: 7

0 comments on commit 6038996

Please sign in to comment.