Skip to content

Instantly share code, notes, and snippets.

@DJanoskova
Created March 31, 2023 13:34
Show Gist options
  • Select an option

  • Save DJanoskova/7809751e9a016b648873e48f764f9298 to your computer and use it in GitHub Desktop.

Select an option

Save DJanoskova/7809751e9a016b648873e48f764f9298 to your computer and use it in GitHub Desktop.
Cypress GitHub workflow for a pnpm monorepo with multiple apps
name: CI
on:
push:
paths:
- "apps/your-app/**"
- "packages/**"
- ".github/workflows/test.yml"
workflow_dispatch: {}
jobs:
Cypress-Test:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- uses: actions/checkout@v3
- name: Install modules
run: pnpm install
- name: Run Cypress tests
uses: cypress-io/github-action@v3
with:
install: false
working-directory: apps/your-app
build: npx cypress info
start: pnpm dev
command: cypress run
record: false
config-file: cypress.config.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment