From 5afae2172d0646177529cb8045caa458fcb2d45d Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:36:48 +0700 Subject: [PATCH] Fix CI Test run failed on ubuntu and change release file app name (#307) Co-authored-by: Hien To <> --- .github/workflows/linter-and-test.yml | 7 ++++--- electron/package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linter-and-test.yml b/.github/workflows/linter-and-test.yml index 70ae433f6..c4570b42a 100644 --- a/.github/workflows/linter-and-test.yml +++ b/.github/workflows/linter-and-test.yml @@ -78,11 +78,12 @@ jobs: - name: Linter and test run: | + w_output=$(w) + export DISPLAY=$(echo "$w_output" | awk '$3 ~ /:[0-9]+/ {print $3}') + echo -e "Display ID: $DISPLAY" yarn config set network-timeout 300000 yarn install yarn lint yarn build:plugins yarn build:linux - yarn test - env: - DISPLAY: ":0" \ No newline at end of file + yarn test \ No newline at end of file diff --git a/electron/package.json b/electron/package.json index e6e3704af..5df518e7a 100644 --- a/electron/package.json +++ b/electron/package.json @@ -34,7 +34,7 @@ "teamId": "YT49P7GXG4" } }, - "artifactName": "${name}-${os}-${arch}-${version}.${ext}" + "artifactName": "jan-${os}-${arch}-${version}.${ext}" }, "scripts": { "lint": "eslint . --ext \".js,.jsx,.ts,.tsx\"",