Skip to content

Commit 4e1e53e

Browse files
committed
remove visual regression for now
1 parent ae1bd0f commit 4e1e53e

File tree

7 files changed

+19
-1362
lines changed

7 files changed

+19
-1362
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -66,63 +66,3 @@ jobs:
6666

6767
- name: Lint FireFox
6868
run: yarn run lint:firefox
69-
70-
visual-regression:
71-
name: Visual Regression
72-
runs-on: ubuntu-latest
73-
timeout-minutes: 10
74-
steps:
75-
- name: Checkout Repo
76-
uses: actions/checkout@v3
77-
with:
78-
fetch-depth: 0
79-
80-
- name: Setup Node
81-
uses: actions/setup-node@v3
82-
with:
83-
node-version: '16'
84-
85-
- name: Get Yarn cache directory
86-
id: yarn-cache-dir-path
87-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
88-
89-
- name: Use Yarn cache
90-
uses: actions/cache@v3
91-
id: yarn-cache
92-
with:
93-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
94-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
95-
restore-keys: |
96-
${{ runner.os }}-yarn-
97-
98-
- name: Use node_modules cache
99-
id: node-modules-cache
100-
uses: actions/cache@v3
101-
with:
102-
path: node_modules
103-
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
104-
105-
- name: Install Dependencies
106-
if: |
107-
steps.yarn-cache.outputs.cache-hit != 'true' ||
108-
steps.node-modules-cache.outputs.cache-hit != 'true'
109-
run: yarn install --prefer-offline --frozen-lockfile --non-interactive --silent
110-
111-
- name: Run Cosmos
112-
run: yarn run cosmos &
113-
114-
- name: Wait for Cosmos to boot
115-
run: yarn wait-on http://localhost:5001
116-
117-
- name: Run Puppeteer
118-
run: yarn run visual-regression:exec
119-
env:
120-
COSMOS_HOST: locahost
121-
COSMOS_PORT: 5000
122-
123-
- name: Store image diffs
124-
uses: actions/upload-artifact@v2
125-
if: ${{ failure() }}
126-
with:
127-
name: image-snapshots
128-
path: src/panel/__image_snapshots__/__diff_output__/

cosmos.config.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

cosmos.override.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

docker-compose.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
"build:extension": "export NODE_ENV=production; export BUILD_ENV=extension; yarn webpack:extension",
2323
"bundle": "cd dist/extension && bestzip ../../extension.zip *",
2424
"changelog": "docker run -it --rm -v \"$(pwd)\":/usr/local/src/your-app ferrarimarco/github-changelog-generator",
25-
"cosmos": "export BUILD_ENV=electron; cosmos",
26-
"cosmos:build": "export BUILD_ENV=electron; yarn cosmos-export && node scripts/cosmos-add-badge.js",
2725
"dev": "concurrently \"npm:dev:extension\" \"npm:dev:electron\"",
2826
"dev:electron": "export BUILD_ENV=electron; concurrently \"yarn webpack:extension --watch\" \"yarn webpack:electron --watch\"",
2927
"dev:extension": "export BUILD_ENV=extension; yarn webpack:extension --watch",
@@ -32,8 +30,6 @@
3230
"lint:prettier": "prettier -c .",
3331
"start": "electron dist/electron/main.js",
3432
"test": "jest --testPathIgnorePatterns visual-regression",
35-
"visual-regression": "./scripts/regression.sh --watch",
36-
"visual-regression:exec": "jest --no-cache visual-regression --runInBand",
3733
"webpack:electron": "webpack --config webpack/webpack.electron.config.js",
3834
"webpack:extension": "webpack --config webpack/webpack.extension.config.js",
3935
"type-check": "yarn tsc"
@@ -129,14 +125,12 @@
129125
"husky": "^4.2.5",
130126
"identity-obj-proxy": "^3.0.0",
131127
"jest": "^26.4.2",
132-
"jest-image-snapshot": "^4.2.0",
133128
"jest-styled-components": "^7.0.3",
134129
"lint-staged": "^10.3.0",
135130
"nanoid": "^3.1.12",
136131
"polished": "^3.6.6",
137132
"prettier": "^2.1.1",
138133
"puppeteer": "^3.3.0",
139-
"react-cosmos": "5.6.2",
140134
"semver": "^7.3.2",
141135
"style-loader": "^1.2.1",
142136
"terser-webpack-plugin": "^4.2.2",

src/panel/visual-regression.test.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)