diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 4634b76bfeb..b0b09e4c0ac 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -7,10 +7,11 @@ on: - main - master - stable* + - test/slow-cypress-on-push concurrency: group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true + cancel-in-progress: ${{ !github.head_ref }} env: APP_NAME: text @@ -80,7 +81,7 @@ jobs: fail-fast: false matrix: node-version: [16] - containers: [1, 2, 3, 4, 5, 6, 7, 8] + containers: ${{ github.head_ref ? [1, 2, 3, 4, 5, 6, 7, 8] : [1] }} php-versions: [ '8.1' ] server-versions: [ 'master' ] @@ -145,8 +146,8 @@ jobs: - name: Cypress run uses: cypress-io/github-action@v4 with: - record: true - parallel: true + record: '${{ !!github.head_ref }}' # only on pull requests + parallel: '${{ !!github.head_ref }}' # only on pull requests wait-on: '${{ env.CYPRESS_baseUrl }}' working-directory: 'apps/${{ env.APP_NAME }}' config: defaultCommandTimeout=10000,video=false