Skip to content

Commit 2c15373

Browse files
lawvsOverflowCat
authored andcommitted
feat: add GitHub Actions workflow for build and test
1 parent 8d8374a commit 2c15373

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v3
19+
20+
- name: Use Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
25+
- name: Install node modules
26+
run: pnpm install
27+
28+
- name: Test
29+
run: pnpm run test
30+
31+
- name: Build
32+
run: pnpm run build
33+
34+
# - name: Upload pages artifacts
35+
# # https://github.com/actions/upload-pages-artifact
36+
# uses: actions/upload-pages-artifact@v3
37+
# with:
38+
# path: ".next/"

0 commit comments

Comments
 (0)