[CI > Test] Try using xvfb to run

This commit is contained in:
Ducko 2022-02-01 21:22:30 +00:00
parent 762ca6a224
commit b2e2aa12a2

View file

@ -37,12 +37,11 @@ jobs:
tar xf discord.tar.gz tar xf discord.tar.gz
cp app.asar DiscordCanary/resources/app.asar cp app.asar DiscordCanary/resources/app.asar
- name: Check if Discord will startup - name: Setup running deps
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install xorg sudo apt install xvfb
echo "allowed_users=anybody" > /etc/X11/Xwrapper.config - name: Check if Discord will startup
startx run: |
xhost local: xvfb-run ./DiscordCanary/DiscordCanary --enable-logging
DISPLAY=:0 ./DiscordCanary/DiscordCanary --enable-logging
# node scripts/testStartup.js ./DiscordCanary/DiscordCanary # node scripts/testStartup.js ./DiscordCanary/DiscordCanary