Skip to content

Commit 3ad29e0

Browse files
committed
fix workflow
1 parent b24aead commit 3ad29e0

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/runtime-test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: ./gradlew build -x spotlessCheck -Pmod_version="${MOD_VERSION}"
4747

4848
- name: Install client runtime dependencies
49-
run: sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y xvfb
49+
run: sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y xvfb x11-xserver-utils
5050

5151
- name: Prepare client runtime directory
5252
run: mkdir -p run/client/mods
@@ -68,7 +68,14 @@ jobs:
6868
EOF
6969
7070
- name: Run client runtime test
71-
run: xvfb-run -a timeout 10m ./gradlew runClient --no-daemon -Pmod_version="${MOD_VERSION}"
71+
run: |
72+
set -euo pipefail
73+
74+
xvfb-run -a bash -c '
75+
set -euo pipefail
76+
xrandr -q
77+
timeout 10m ./gradlew runClient --no-daemon -Pmod_version="${MOD_VERSION}"
78+
'
7279
7380
- name: Run server runtime test
7481
run: |
@@ -123,8 +130,8 @@ jobs:
123130
name: runtime-test-logs
124131
if-no-files-found: ignore
125132
path: |
126-
run/client/logs
127-
run/client/crash-reports
133+
run/logs
134+
run/crash-reports
128135
run/server/logs
129136
run/server/crash-reports
130137
run/server/runtime-test-server.log

0 commit comments

Comments
 (0)