Skip to content

Commit

Permalink
#92
Browse files Browse the repository at this point in the history
Signed-off-by: danigonzser <[email protected]>
  • Loading branch information
danigonzser committed Oct 29, 2024
1 parent b1ad6a1 commit 7502a34
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/code-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,27 @@ jobs:
- name: "UI Desktop Tests - Chrome"
uses: cypress-io/github-action@v6
with:
record: true
start: pnpm run start
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: chrome
spec: cypress/e2e/*
config-file: cypress.config.ts

- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
- uses: actions/upload-artifact@v4
with:
name: cypress-videos
path: cypress/videos
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`


- name: Build Caching
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -165,13 +179,26 @@ jobs:
- name: "UI Tests - Chrome - Mobile"
uses: cypress-io/github-action@v6
with:
record: true
config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
start: pnpm run start
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: chrome
spec: cypress/e2e/mobile/*
config-file: cypress.config.ts

- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
- uses: actions/upload-artifact@v4
with:
name: cypress-videos
path: cypress/videos
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`

- name: Build Caching
uses: actions/cache@v4
Expand Down

0 comments on commit 7502a34

Please sign in to comment.