Skip to content

Commit f41c176

Browse files
committed
feature: ci 파이프라인 구성
1 parent 1b1f2c6 commit f41c176

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test-ci.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ['main']
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [18, 19, 20, 21, 22, 23]
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'pnpm'
26+
27+
- name: Install pnpm
28+
run: npm install -g pnpm
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Run lint
34+
run: pnpm run lint
35+
36+
- name: Run tests
37+
run: pnpm run test
38+
39+
- name: Run build
40+
run: pnpm run build

0 commit comments

Comments
 (0)