Skip to content

Commit

Permalink
Delete cypress (#3231)
Browse files Browse the repository at this point in the history
* Delete tests

* Update workflows

* Update package json

* Remove other mentions of the thing
  • Loading branch information
cesarvarela authored Nov 20, 2024
1 parent fc98c71 commit fc47061
Show file tree
Hide file tree
Showing 71 changed files with 8 additions and 159,273 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ jobs:
NETLIFY_SITE_ID: ${{ vars.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_PROJECT_ID: ${{ vars.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }}
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ jobs:
netlify-context: branch-deploy
runner-label: ${{ vars.PREVIEW_RUNNER_LABEL }}

call-test:
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/test.yml
needs: call-test-build
secrets: inherit
with:
sha: ${{ github.event.pull_request.head.sha }}
environment: staging
runner-label: ${{ vars.PREVIEW_RUNNER_LABEL }}

call-test-playwright:
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/test-playwright.yml
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ jobs:
runner-label: ${{ vars.PRODUCTION_RUNNER_LABEL }}
cache-modifier: ${{ needs.cache-modifier.outputs.cache-modifier }}

call-test:
uses: ./.github/workflows/test.yml
needs: [cache-modifier, call-test-build]
secrets: inherit
with:
sha: ${{ github.sha }}
environment: production
runner-label: ${{ vars.PRODUCTION_RUNNER_LABEL }}
cache-modifier: ${{ needs.cache-modifier.outputs.cache-modifier }}

call-test-playwright:
uses: ./.github/workflows/test-playwright.yml
needs: call-test-build
Expand All @@ -84,7 +74,7 @@ jobs:
call-deploy:
if: (inputs.force-deploy == true || success()) && !cancelled()
uses: ./.github/workflows/deploy.yml
needs: [cache-modifier, call-test, call-test-api, call-test-playwright, call-test-playwright-full]
needs: [cache-modifier, call-test-api, call-test-playwright, call-test-playwright-full]
secrets: inherit
permissions:
pull-requests: write
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ jobs:
environment: staging
runner-label: ${{ vars.STAGING_RUNNER_LABEL }}

call-test:
uses: ./.github/workflows/test.yml
needs: [cache-modifier, call-test-build]
secrets: inherit
with:
sha: ${{ github.sha }}
environment: staging
runner-label: ${{ vars.STAGING_RUNNER_LABEL }}
cache-modifier: ${{ needs.cache-modifier.outputs.cache-modifier }}

call-test-playwright-full:
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/test-playwright-full.yml
Expand All @@ -83,7 +73,7 @@ jobs:
call-deploy:
if: (inputs.force-deploy == true || success()) && !cancelled()
uses: ./.github/workflows/deploy.yml
needs: [cache-modifier, call-test, call-test-playwright, call-test-api]
needs: [cache-modifier, call-test-playwright, call-test-api]
secrets: inherit
permissions:
pull-requests: write
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ jobs:
with:
path: |
site/gatsby-site/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ inputs.cache-modifier}}

- name: Install NPM dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
uses: cypress-io/github-action@v6
with:
working-directory: site/gatsby-site
runTests: false
install-command: npm ci
working-directory: site/gatsby-site
run: npm ci

- name: Use tests specific netlify.toml
run: mv tests-netlify.toml netlify.toml
Expand All @@ -80,8 +76,6 @@ jobs:
NETLIFY_SITE_ID: ${{ vars.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_PROJECT_ID: ${{ vars.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }}
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
Expand Down Expand Up @@ -116,7 +110,6 @@ jobs:
ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN: ${{ secrets.GATSBY_ROLLBAR_TOKEN }}
API_MONGODB_CONNECTION_STRING: ${{ secrets.API_MONGODB_CONNECTION_STRING }}


- name: Cache build
uses: actions/cache/save@v4
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-playwright-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
with:
path: |
site/gatsby-site/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ inputs.cache-modifier }}

- name: Install NPM dependencies
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
with:
path: |
site/gatsby-site/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ inputs.cache-modifier }}

- name: Install NPM dependencies
Expand Down
136 changes: 0 additions & 136 deletions .github/workflows/test.yml

This file was deleted.

5 changes: 2 additions & 3 deletions site/gatsby-site/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prettier",
"prettier/react"
],
"plugins": ["react", "import", "jsx-a11y", "cypress"],
"plugins": ["react", "import", "jsx-a11y"],
"settings": {
"react": {
"version": "detect"
Expand Down Expand Up @@ -60,8 +60,7 @@
"env": {
"es6": true,
"browser": true,
"node": true,
"cypress/globals": true
"node": true
},
"globals": {
"graphql": false,
Expand Down
29 changes: 0 additions & 29 deletions site/gatsby-site/cypress.config.js

This file was deleted.

Loading

0 comments on commit fc47061

Please sign in to comment.