Skip to content

Commit

Permalink
remove visual regression for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Nov 27, 2022
1 parent ae1bd0f commit 4e1e53e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1,362 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,63 +66,3 @@ jobs:

- name: Lint FireFox
run: yarn run lint:firefox

visual-regression:
name: Visual Regression
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Use node_modules cache
id: node-modules-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install Dependencies
if: |
steps.yarn-cache.outputs.cache-hit != 'true' ||
steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --prefer-offline --frozen-lockfile --non-interactive --silent

- name: Run Cosmos
run: yarn run cosmos &

- name: Wait for Cosmos to boot
run: yarn wait-on http://localhost:5001

- name: Run Puppeteer
run: yarn run visual-regression:exec
env:
COSMOS_HOST: locahost
COSMOS_PORT: 5000

- name: Store image diffs
uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: image-snapshots
path: src/panel/__image_snapshots__/__diff_output__/
8 changes: 0 additions & 8 deletions cosmos.config.json

This file was deleted.

36 changes: 0 additions & 36 deletions cosmos.override.js

This file was deleted.

34 changes: 0 additions & 34 deletions docker-compose.yml

This file was deleted.

6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"build:extension": "export NODE_ENV=production; export BUILD_ENV=extension; yarn webpack:extension",
"bundle": "cd dist/extension && bestzip ../../extension.zip *",
"changelog": "docker run -it --rm -v \"$(pwd)\":/usr/local/src/your-app ferrarimarco/github-changelog-generator",
"cosmos": "export BUILD_ENV=electron; cosmos",
"cosmos:build": "export BUILD_ENV=electron; yarn cosmos-export && node scripts/cosmos-add-badge.js",
"dev": "concurrently \"npm:dev:extension\" \"npm:dev:electron\"",
"dev:electron": "export BUILD_ENV=electron; concurrently \"yarn webpack:extension --watch\" \"yarn webpack:electron --watch\"",
"dev:extension": "export BUILD_ENV=extension; yarn webpack:extension --watch",
Expand All @@ -32,8 +30,6 @@
"lint:prettier": "prettier -c .",
"start": "electron dist/electron/main.js",
"test": "jest --testPathIgnorePatterns visual-regression",
"visual-regression": "./scripts/regression.sh --watch",
"visual-regression:exec": "jest --no-cache visual-regression --runInBand",
"webpack:electron": "webpack --config webpack/webpack.electron.config.js",
"webpack:extension": "webpack --config webpack/webpack.extension.config.js",
"type-check": "yarn tsc"
Expand Down Expand Up @@ -129,14 +125,12 @@
"husky": "^4.2.5",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.4.2",
"jest-image-snapshot": "^4.2.0",
"jest-styled-components": "^7.0.3",
"lint-staged": "^10.3.0",
"nanoid": "^3.1.12",
"polished": "^3.6.6",
"prettier": "^2.1.1",
"puppeteer": "^3.3.0",
"react-cosmos": "5.6.2",
"semver": "^7.3.2",
"style-loader": "^1.2.1",
"terser-webpack-plugin": "^4.2.2",
Expand Down
93 changes: 0 additions & 93 deletions src/panel/visual-regression.test.ts

This file was deleted.

Loading

0 comments on commit 4e1e53e

Please sign in to comment.