Skip to content

Fix playwright executable path #16

Fix playwright executable path

Fix playwright executable path #16

Workflow file for this run

name: Cypress
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- 'src/'
- 'cypress/'
- 'cypress.config.cjs'
- 'pnpm-lock.yaml'
- '.github/'
pull_request:
branches: [ "main" ]
paths:
- 'src/'
- 'cypress/'
- 'cypress.config.cjs'
- 'pnpm-lock.yaml'
- '.github/'
concurrency:
group: cypress-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Set up Cypress binary cache
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('pnpm-lock.yaml') }}
- name: Cypress run
uses: cypress-io/github-action@v6
env:
EMBED_API_TOKEN: ${{ secrets.EMBED_API_TOKEN }}
with:
install: false
browser: chrome
build: pnpm gh-action:build
start: pnpm gh-action:start
wait-on: 'http://localhost:3000/tracks/1766030'
command: pnpm cypress:run