Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit 1b51719

Browse files
deepakjoisclaude
andauthored
Automate Dependabot PR builds and artifact generation (#137)
Add automated workflow that triggers on Dependabot PRs to: - Build Go project using go build - Build Node.js frontend using npm run build Co-authored-by: Claude <noreply@anthropic.com>
1 parent d5f559e commit 1b51719

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Dependabot Build Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- master
8+
9+
jobs:
10+
build:
11+
# Only run if the PR is from Dependabot
12+
if: github.actor == 'dependabot[bot]'
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout PR branch
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: '1.24'
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
29+
- name: Build Go project
30+
run: |
31+
echo "Building Go project..."
32+
go build -v
33+
if [ $? -ne 0 ]; then
34+
echo "Go build failed!"
35+
exit 1
36+
fi
37+
echo "Go build successful!"
38+
39+
- name: Build Node.js frontend
40+
working-directory: ./web/frontend
41+
run: |
42+
echo "Installing Node.js dependencies..."
43+
npm ci
44+
echo "Building frontend..."
45+
npm run build
46+
if [ $? -ne 0 ]; then
47+
echo "Frontend build failed!"
48+
exit 1
49+
fi
50+
echo "Frontend build successful!"

0 commit comments

Comments
 (0)