Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuyui committed May 19, 2023
1 parent e2b7ea1 commit 5832644
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test-vrt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: test
on: push
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install

- name: Test
run: yarn build

- name: Visual Regression Test
run: yarn test:vrt
2 changes: 1 addition & 1 deletion examples/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"scripts": {
"start": "storybook dev -p 6006",
"storybook": "storybook dev -p 6006",
"test": "playwright test",
"test:vrt": "playwright test",
"build-storybook": "storybook build"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "turbo build",
"test": "turbo test",
"lint": "turbo lint",
"test:vrt": "turbo test:vrt",
"format:prettier": "prettier --write .",
"format:eslint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore --fix",
"lint:prettier": "prettier --check .",
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"test": {
"dependsOn": ["^test"]
}
},
"test:vrt": {}
}
}

0 comments on commit 5832644

Please sign in to comment.