Fix cypress index test broken by #484's truncate wrapper (#510) #1105
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: E2E Tests | |
| on: | |
| push: | |
| env: | |
| VERBOSE: true | |
| YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| e2e-config: | |
| - standalone_js | |
| - standalone_ts | |
| # - turbo | |
| - next_js | |
| - next_ts | |
| # remix_js is dropped: React Router v7 (the successor to the classic | |
| # `create-remix` CLI) is TypeScript-first and ships no JavaScript | |
| # starter template. remix_ts covers the React Router scaffold. | |
| - remix_ts | |
| # redwood_js/ts are disabled: create-redwood-app now scaffolds a | |
| # `packageManager: "yarn@4.6.0"` (Yarn Berry / corepack) project that the | |
| # yarn-1-based e2e harness can't `yarn add` into, and RedwoodJS is EOL | |
| # (pivoted to RedwoodSDK). See gh#504. | |
| # - redwood_js | |
| # - redwood_ts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.1.2 | |
| bundler-cache: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| # Single source of truth for the Node version — kept in sync with | |
| # local dev via .tool-versions (see gh#504 toolchain drift). | |
| node-version-file: ".tool-versions" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Setup ${{ matrix.e2e-config }} app | |
| run: bundle exec ruby e2e/cli.rb setup --app=${{ matrix.e2e-config }} | |
| - name: Run ${{ matrix.e2e-config }} jest tests | |
| run: yarn jest --rootDir=mailing_tests/jest --config mailing_tests/jest/jest.config.json | |
| working-directory: /tmp/mailing_e2e/ci | |
| - name: Run ${{ matrix.e2e-config }} cypress tests | |
| uses: cypress-io/github-action@v6 | |
| env: | |
| DEBUG: "@cypress/github-action" | |
| with: | |
| install: false | |
| start: yarn ci:mailing:nohup | |
| working-directory: /tmp/mailing_e2e/ci | |
| # Cypress's bundled Electron; the runner's Chrome fails to connect | |
| # under Cypress 15 ("Still waiting to connect to Chrome"). See gh#504. | |
| browser: electron | |
| project: mailing_tests |