From c65078ec2cb90badf22573b1954b7bab9256ca92 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sun, 27 Aug 2023 08:11:39 +0300 Subject: [PATCH 1/2] update ci for cypress --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 867fefba..cfb51d75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,5 +12,12 @@ jobs: run: npm i -g pnpm - run: pnpm install - run: pnpm build - # todo use nohup and official action? - # - run: pnpm prod-start & pnpm test:cypress + - uses: cypress-io/github-action@v5 + with: + start: pnpm prod-start + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: cypress-images + path: cypress/integration/__image_snapshots__/ + if-no-files-found: ignore From 65b945cccc20c4fb3923d698e6133fab12e291e1 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sun, 27 Aug 2023 08:46:25 +0300 Subject: [PATCH 2/2] [skip ci] up ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfb51d75..8827dac6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: - run: pnpm build - uses: cypress-io/github-action@v5 with: + install: false start: pnpm prod-start - uses: actions/upload-artifact@v3 if: failure()