Fix CI test run failed on ubuntu

This commit is contained in:
Hien To 2023-10-09 15:40:40 +07:00 committed by Louis
parent cc2f5cbc08
commit da7dee3de7

View File

@ -78,8 +78,7 @@ jobs:
- name: Linter and test
run: |
w_output=$(w)
export DISPLAY=$(echo "$w_output" | awk '$3 ~ /:[0-9]+/ {print $3}')
export DISPLAY=$(w -h | awk 'NR==1 {print $2}')
echo -e "Display ID: $DISPLAY"
yarn config set network-timeout 300000
yarn install