From f5402d7b23327e38df360e006f60883d2bc5cd6e Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 27 May 2022 13:42:27 +0800 Subject: [PATCH 1/4] ci: cache Cypress binary in install --- .github/actions/prepare-install/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/prepare-install/action.yml b/.github/actions/prepare-install/action.yml index 73fc2191a0dc..f77dbadf9c13 100644 --- a/.github/actions/prepare-install/action.yml +++ b/.github/actions/prepare-install/action.yml @@ -31,7 +31,9 @@ runs: - uses: actions/cache@v3 id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + ~/.cache key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- From 25302f078e54a0c0d9424d2914e71fd2a155e0a2 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 27 May 2022 13:51:49 +0800 Subject: [PATCH 2/4] try again... --- .github/actions/prepare-install/action.yml | 2 +- .github/workflows/ci.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/prepare-install/action.yml b/.github/actions/prepare-install/action.yml index f77dbadf9c13..4d28fccf7b26 100644 --- a/.github/actions/prepare-install/action.yml +++ b/.github/actions/prepare-install/action.yml @@ -33,7 +33,7 @@ runs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} - ~/.cache + ~/.cache/Cypress key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2e01de99389..533fd57ce0a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,9 @@ jobs: - name: Build uses: ./.github/actions/prepare-build + - name: Install Cypress + run: yarn cypress install + - name: Cypress run uses: cypress-io/github-action@v2 with: From b0ae28853c806f45668110d9c8cc16981cb1139f Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 27 May 2022 14:05:40 +0800 Subject: [PATCH 3/4] add wait-on --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 533fd57ce0a6..f510266e0f71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -201,6 +201,7 @@ jobs: with: project: ./packages/website start: yarn start + wait-on: http://localhost:3000 - uses: actions/upload-artifact@v3 with: From 0094fedc8bc23f6c03d08d61208bdbe820cae94b Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 27 May 2022 14:57:16 +0800 Subject: [PATCH 4/4] remove wait-on... --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f510266e0f71..533fd57ce0a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -201,7 +201,6 @@ jobs: with: project: ./packages/website start: yarn start - wait-on: http://localhost:3000 - uses: actions/upload-artifact@v3 with: