Skip to content

Commit

Permalink
chore: continuous integration setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cla6shade committed Sep 26, 2024
1 parent 293ec1a commit 43f226f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- 'develop/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout source code
uses: 'actions/checkout@v4'
- name: init yarn
uses: 'actions/setup-node@v4'
with:
node-version: '20'
- name: yarn berry setup
run: corepack enable && yarn set version berry
- name: install dependencies
run: yarn
- name: run test
run: yarn ci
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"lint": "eslint .",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"ci": "yarn lint && yarn build"
},
"exports": {
".": {
Expand Down

0 comments on commit 43f226f

Please sign in to comment.