Skip to content

Commit efd37c7

Browse files
committed
feat(ci): update test workflow to use go.mod version file and verify build
1 parent 6ee54ae commit efd37c7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test-backend.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
paths:
66
- "backend/**"
7+
- ".github/workflows/test-backend.yml"
78
pull_request:
89
paths:
910
- "backend/**"
11+
- ".github/workflows/test-backend.yml"
1012

1113
jobs:
1214
test:
@@ -18,8 +20,8 @@ jobs:
1820
- uses: actions/checkout@v4
1921
- uses: actions/setup-go@v5
2022
with:
21-
go-version: "1.24"
22-
cache-dependency-path: backend/go.sum
23-
- run: go build ./...
24-
- run: go test ./...
23+
go-version-file: go.mod
24+
cache-dependency-path: go.sum
2525
- run: go vet ./...
26+
- run: go test ./...
27+
- run: CGO_ENABLED=0 GOOS=linux go build -o /dev/null ./cmd/api

0 commit comments

Comments
 (0)