Skip to content

Commit aadb9e1

Browse files
committed
ci: add github workflow
1 parent 8cbf805 commit aadb9e1

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint-and-build:
12+
runs-on: ubuntu-24.04
13+
14+
strategy:
15+
matrix:
16+
node-version: [20, 22, 24]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Run ESLint
32+
run: npm run lint
33+
34+
- name: Build Storybook
35+
run: npm run storybook:build
36+
37+
- name: Upload Storybook build artifacts
38+
uses: actions/upload-artifact@v4
39+
if: matrix.node-version == 20
40+
with:
41+
name: storybook-build
42+
path: storybook-static/
43+
retention-days: 30

0 commit comments

Comments
 (0)