From d503a71ae486b0b93f0c77e940f49dca4280324e Mon Sep 17 00:00:00 2001 From: Andi Oneto Date: Mon, 22 Nov 2021 12:22:28 -0800 Subject: [PATCH] chore(cypress): rename containers to machines --- .github/workflows/on_pull_request.yml | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml index 40631573cf..8fe7a10019 100644 --- a/.github/workflows/on_pull_request.yml +++ b/.github/workflows/on_pull_request.yml @@ -363,10 +363,14 @@ jobs: needs: build runs-on: ubuntu-latest strategy: + # when one test fails, DO NOT cancel the other + # containers, because this will kill Cypress processes + # leaving the Dashboard hanging ... + # https://github.com/cypress-io/github-action/issues/48 fail-fast: false matrix: - # run copies of the current job in parallel - containers: [1, 2, 3, 4, 5] + # run 3 copies of the current job in parallel, all load-balanced + machines: [1, 2, 3] steps: - name: Checkout Repo uses: actions/checkout@v2 diff --git a/package.json b/package.json index 4b08fdde2a..2e80b02ee8 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "test:tools": "jest ./tools/ -c ./tools/jest.config.js", "test:tools-16": "USE_REACT_16=true jest ./tools/ -c ./tools/jest.config.js", "test:coverage": "yarn pre-test && jest --coverage", - "test:website": "start-server-and-test 'yarn serve:website' http://localhost:9000 'yarn cypress run --record --parallel --spec \"./cypress/integration/**/**/*.spec.ts\"'", + "test:website": "start-server-and-test 'yarn serve:website' http://localhost:9000 'yarn cypress run --record --parallel --group cypress-tests --spec \"./cypress/integration/**/**/*.spec.ts\"'", "test:website-gui": "start-server-and-test 'yarn serve:website' http://localhost:9000 'yarn cypress open'", "serve:website": "yarn workspace @twilio-paste/website serve", "package-size-action-build": "yarn build",