Skip to content

test message

test message #1

Workflow file for this run

name: Cypress Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cypress:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Get Cypress cache
uses: actions/cache@v3
id: cypress-cache
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
cypress-${{ runner.os }}-
- name: Install Cypress
if: steps.cypress-cache.outputs.cache-hit != 'true'
run: yarn cypress install
- name: Run Cypress tests
uses: cypress-io/github-action@v6
with:
start: yarn start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: chrome
record: false
- name: Upload Cypress screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore
- name: Upload Cypress videos
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos
if-no-files-found: ignore