Skip to content

Commit 7653eb3

Browse files
author
I528989
committed
ci: fix go template build for non-module project (direct main.go build + binary health check)
1 parent dfe9c3e commit 7653eb3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/pr-ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,11 @@ jobs:
120120
- uses: actions/checkout@v4
121121
- name: Build
122122
working-directory: templates/go
123-
run: go build -v ./...
124-
- name: Vet
125-
working-directory: templates/go
126-
run: go vet ./...
123+
run: go build -o service main.go
127124
- name: Run & health
128125
working-directory: templates/go
129126
run: |
130-
go run . &
127+
./service &
131128
PID=$!
132129
sleep 2
133130
curl -f http://127.0.0.1:3002/health || (echo 'no health'; kill $PID; exit 1)

0 commit comments

Comments
 (0)