Created
March 31, 2023 13:34
-
-
Save DJanoskova/7809751e9a016b648873e48f764f9298 to your computer and use it in GitHub Desktop.
Cypress GitHub workflow for a pnpm monorepo with multiple apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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