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 diff --git a/cypress/integration/__image_snapshots__/Loads & renders singleplayer #0.png b/cypress/integration/__image_snapshots__/Loads & renders singleplayer #0.png new file mode 100644 index 00000000..ea42d86f Binary files /dev/null and b/cypress/integration/__image_snapshots__/Loads & renders singleplayer #0.png differ diff --git a/cypress/integration/__image_snapshots__/Renders menu (options button) #0.png b/cypress/integration/__image_snapshots__/Renders menu (options button) #0.png deleted file mode 100644 index 93a6c53c..00000000 Binary files a/cypress/integration/__image_snapshots__/Renders menu (options button) #0.png and /dev/null differ diff --git a/cypress/integration/index.spec.ts b/cypress/integration/index.spec.ts index 27a92da7..41f8e96d 100644 --- a/cypress/integration/index.spec.ts +++ b/cypress/integration/index.spec.ts @@ -1,11 +1,10 @@ /// -it('Renders menu (options button)', () => { +it('Loads & renders singleplayer', () => { // todo use