Skip to content

Commit f3cdeda

Browse files
committed
feat: add GitHub Actions workflow for build and test process
1 parent ed7b239 commit f3cdeda

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: pnpm
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Build
27+
run: pnpm build
28+
29+
- name: Test Client-side Rendering
30+
run: pnpm test:client
31+
32+
- name: Test Server-side Rendering
33+
run: pnpm test:ssr

0 commit comments

Comments
 (0)