Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ jobs:
node-version: 16
cache: 'yarn'

- name: Cache Cypress binary
uses: actions/cache@v1
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}
restore-keys: |
cypress-${{ runner.os }}-cypress-

- name: Install code
run: yarn install --frozen-lock-file

Expand All @@ -80,14 +88,19 @@ jobs:
env:
PUBLIC_URL: 'http://localhost:3000'

- name: Archive cypress artifacts
uses: actions/upload-artifact@v3
if: failure()
- uses: actions/upload-artifact@v3
with:
name: cypress-screenshots
path: cypress/screenshots
# there might be no screenshots created when:
# - there are no test failures
# so only upload screenshots if previous step has failed
if: failure()

- uses: actions/upload-artifact@v3
with:
name: cypress-artifacts
path: |
cypress/screenshots
cypress/videos
name: cypress-videos
path: cypress/videos


build-and-deploy-tag:
Expand Down
Loading