From 93b9765e3e77c6cefe0487e1657886d5f05d4146 Mon Sep 17 00:00:00 2001 From: litesun Date: Sat, 9 Jan 2021 00:01:50 +0800 Subject: [PATCH] feat(FE): skip Cypress binary install when build (#1248) --- .github/workflows/test-frontend-multiple-node-build.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-frontend-multiple-node-build.yml b/.github/workflows/test-frontend-multiple-node-build.yml index 7a29774a39..e1f78da14f 100644 --- a/.github/workflows/test-frontend-multiple-node-build.yml +++ b/.github/workflows/test-frontend-multiple-node-build.yml @@ -35,7 +35,7 @@ jobs: # Install dependencies - name: Install dependencies working-directory: web - run: yarn + run: CYPRESS_INSTALL_BINARY=0 yarn - name: Lint working-directory: web diff --git a/Makefile b/Makefile index ec962c25fc..79de9e09e7 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ help: ### build: Build Apache APISIX Dashboard, it contains web and manager-api .PHONY: build build: web-default api-default - api/build.sh && cd ./web && export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn install && yarn build && mkdir -p ../output/logs + api/build.sh && cd ./web && export CYPRESS_INSTALL_BINARY=0 && yarn install && yarn build && mkdir -p ../output/logs .PHONY: web-default