Skip to content

Commit

Permalink
Remove obsolete integration tests (#6775)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Oct 12, 2021
1 parent 5c28449 commit 2e733c9
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 1,104 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ module.exports = {
es6: true,
node: true,
jest: true,
'cypress/globals': true,
},
plugins: [
'react',
'react-hooks',
'jest',
'cypress',
'import',
'@typescript-eslint',
'@preconstruct/format-js-tag',
Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,74 +27,6 @@ jobs:
- run: echo "SHOULD_RUN_TESTS=true" >> $GITHUB_ENV
if: github.event_name != 'pull_request'

cypress:
name: Cypress tests
needs: should_run_tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: keystone5
POSTGRES_PASSWORD: k3yst0n3
POSTGRES_DB: test_db
ports:
- 5432:5432
env:
DATABASE_URL: 'postgres://keystone5:k3yst0n3@localhost:5432/test_db'
CLOUDINARY_CLOUD_NAME: $CLOUDINARY_CLOUD_NAME
CLOUDINARY_KEY: $CLOUDINARY_KEY
CLOUDINARY_SECRET: $CLOUDINARY_SECRET
PORT: 3000
strategy:
fail-fast: false
matrix:
project:
- docs
steps:
- name: Checkout Repo
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
uses: actions/checkout@v2
- name: Setup Node.js 14.x
uses: actions/setup-node@main
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
with:
node-version: 14.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
key: ${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v5-
- name: Install Dependencies
run: yarn
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
- run: yarn --cwd ${{ matrix.project }} cypress install
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
- run: yarn --cwd ${{ matrix.project }} cypress:run:ci
if: needs.should_run_tests.outputs.shouldRunTests == 'true'
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-videos
path: cypress/videos

graphql-api-tests:
name: API Tests
needs: should_run_tests
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ junit.xml
*.sublime-workspace
*.vscode

# Cypress
cypress/screenshots
cypress/videos
cypress/mock

package-lock.json

dist/
Expand Down
3 changes: 0 additions & 3 deletions docs/cypress/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions docs/cypress/fixtures/example.json

This file was deleted.

27 changes: 0 additions & 27 deletions docs/cypress/integration/copy-link.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/cypress/integration/examples/home_spec.js

This file was deleted.

27 changes: 0 additions & 27 deletions docs/cypress/integration/general_spec.js

This file was deleted.

65 changes: 0 additions & 65 deletions docs/cypress/integration/subscribe-form.js

This file was deleted.

28 changes: 0 additions & 28 deletions docs/cypress/integration/table-of-contents.js

This file was deleted.

22 changes: 0 additions & 22 deletions docs/cypress/plugins/index.js

This file was deleted.

53 changes: 0 additions & 53 deletions docs/cypress/support/commands.js

This file was deleted.

20 changes: 0 additions & 20 deletions docs/cypress/support/index.js

This file was deleted.

6 changes: 1 addition & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"dev": "next -p 8000",
"build": "next build && yarn sitemap",
"start": "next start -p 8000",
"sitemap": "yarn next-sitemap",
"cy:open": "cypress open",
"cy:run": "cypress run",
"cypress:run:ci": "yarn build && start-server-and-test start http://localhost:8000 cy:run"
"sitemap": "yarn next-sitemap"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
Expand All @@ -30,7 +27,6 @@
"@types/react-dom": "^17.0.9",
"classnames": "^2.3.1",
"copy-to-clipboard": "^3.3.1",
"cypress": "^5.6.0",
"date-fns": "^2.25.0",
"facepaint": "^1.2.1",
"lodash.debounce": "^4.0.8",
Expand Down
Loading

0 comments on commit 2e733c9

Please sign in to comment.