Skip to content

Commit a286fd5

Browse files
committed
chore: add pr check workflow
1 parent 1f096d6 commit a286fd5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [ main, master ]
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
build-check:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
cache: 'yarn'
21+
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- name: Run build check
26+
run: make build
27+
28+
- name: Check build artifacts
29+
run: |
30+
if [ ! -d ".next" ]; then
31+
echo "Build failed: .next directory not found"
32+
exit 1
33+
fi
34+
echo "Build completed successfully"

0 commit comments

Comments
 (0)