Skip to content

Commit e4ac4e3

Browse files
committed
Prepare workflow to run on CI
1 parent c7ef7dc commit e4ac4e3

9 files changed

Lines changed: 162 additions & 55 deletions

File tree

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
playwright-ct.config.ts
2+
playwright/
3+
14
lint-staged.config.js
25
jest.config.js
36
babel.config.js
7+
48
coverage/
59
dist/
610
docs/

.eslintrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@
4646
{
4747
"files": ["*.spec.*"],
4848
"rules": {
49-
"jest/no-standalone-expect": "off",
50-
"@typescript-eslint/no-unsafe-member-access": "off",
51-
"@typescript-eslint/no-unsafe-call": "off"
49+
"jest/no-standalone-expect": "off"
5250
}
5351
}
5452
],
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Visual Regression Tests
2+
3+
on: pull_request
4+
5+
jobs:
6+
visual-regression-tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup Node.js
11+
uses: actions/setup-node@v3
12+
with:
13+
node-version: '16'
14+
cache: 'npm'
15+
- name: Run Playwright inside Docker
16+
uses: isbang/compose-action@v1.4.1
17+
with:
18+
up-flags: '--exit-code-from playwright --abort-on-container-exit'

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ RUN apt-get update && apt-get -y install libnss3 libatk-bridge2.0-0 libdrm-dev l
44

55
WORKDIR /app
66
COPY package.json .
7-
RUN npm install
7+
RUN npm install --quiet

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
collectCoverageFrom: [
33
'src/**/*.{ts,tsx,js,jsx}',
4+
'!**/*.spec.{js,jsx,ts,tsx}',
45
'!**/*.stories.{js,jsx,ts,tsx}',
56
'!**/*storybook*.{js,jsx,ts,tsx}',
67
],

0 commit comments

Comments
 (0)