name: E2E on: [push, pull_request] permissions: contents: read jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: node-version: [16.x] containers: [1, 2, 3] steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 id: yarn-and-build-cache with: path: | ~/.cache/Cypress build node_modules key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node_modules-build- - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: cache: yarn node-version: ${{ matrix.node-version }} # Install NPM dependencies, cache them correctly # and run all Cypress tests - name: Cypress run uses: cypress-io/github-action@v3 with: start: yarn dev wait-on: 'http://localhost:9000' record: true headless: true parallel: true env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}