Skip to content

Commit 5709c97

Browse files
committed
[rust] Get recordings from runners
1 parent c72716c commit 5709c97

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/bazel.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ on:
6666
required: false
6767
type: string
6868
default: 'ignore-artifacts'
69+
save-recordings:
70+
description: Save desktop recordings
71+
required: false
72+
type: boolean
73+
default: false
6974

7075
jobs:
7176
bazel:
@@ -182,3 +187,27 @@ jobs:
182187
name: ${{ inputs.artifact-name }}
183188
path: changes.patch
184189
retention-days: 6
190+
- name: Save recordings (Windows)
191+
if: inputs.save-recordings && inputs.os == 'windows'
192+
uses: actions/upload-artifact@v4
193+
with:
194+
name: win-recordings
195+
path: |
196+
C:\Users\runneradmin\.cache\selenium\recordings\*.avi
197+
retention-days: 6
198+
- name: Save recordings (Linux)
199+
if: inputs.save-recordings && inputs.os == 'ubuntu'
200+
uses: actions/upload-artifact@v4
201+
with:
202+
name: linux-recordings
203+
path: |
204+
$HOME/.cache/selenium/recordings/*.avi
205+
retention-days: 6
206+
- name: Save recordings (macOS)
207+
if: inputs.save-recordings && inputs.os == 'macos'
208+
uses: actions/upload-artifact@v4
209+
with:
210+
name: macos-recordings
211+
path: |
212+
$HOME/.cache/selenium/recordings/*.avi
213+
retention-days: 6

.github/workflows/ci-rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
cache-key: rust-test
4242
os: ${{ matrix.os }}
4343
run: bazel test --test_env=RUST_BACKTRACE=full --test_env=RUST_TEST_NOCAPTURE=1 --flaky_test_attempts=3 //rust/...
44+
save-recordings: true
4445

4546
windows-stable:
4647
name: "Windows Stable"

0 commit comments

Comments
 (0)