[CI > Test] Rewrite check to kill on success
This commit is contained in:
parent
2c977bf81d
commit
7f1fe8059a
1 changed files with 5 additions and 5 deletions
10
.github/workflows/nightly.yml
vendored
10
.github/workflows/nightly.yml
vendored
|
@ -63,18 +63,18 @@ jobs:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
- name: Download Client with OpenAsar
|
- name: Download Client with OpenAsar
|
||||||
if: steps.cache-client.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
run: |
|
||||||
wget "https://discord.com/api/download/canary?platform=linux&format=tar.gz" -O discord.tar.gz
|
wget "https://discord.com/api/download/canary?platform=linux&format=tar.gz" -O discord.tar.gz
|
||||||
tar xf discord.tar.gz
|
tar xf discord.tar.gz
|
||||||
|
|
||||||
- name: Install OpenAsar
|
|
||||||
run: |
|
|
||||||
cp app.asar DiscordCanary/resources/app.asar
|
cp app.asar DiscordCanary/resources/app.asar
|
||||||
|
|
||||||
- name: Check if Discord will startup
|
- name: Check if Discord will startup
|
||||||
run: |
|
run: |
|
||||||
timeout 30s bash -c "xvfb-run -e /dev/stdout ./DiscordCanary/DiscordCanary --enable-logging" | grep -m 1 "Installing discord_rpc"
|
coproc { xvfb-run -e /dev/stdout ./DiscordCanary/DiscordCanary --enable-logging }
|
||||||
|
grep -m1 "Installing discord_rpc" <&${COPROC[0]}
|
||||||
|
sleep 1
|
||||||
|
[[ $COPROC_PID ]] && kill $COPROC_PID
|
||||||
|
timeout-minutes: 1
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: test
|
needs: test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue