Skip to content

Commit b42a43d

Browse files
committed
(CI) fix Go version
1 parent bb4594c commit b42a43d

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/go.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
go-version: '1.21'
2323

2424
- name: Build
25-
run: go build -v ./...
25+
run: |
26+
# Build main binary
27+
go build -v -o gogotrace .
28+
# Verify it was built
29+
./gogotrace -help
2630
2731
- name: Test
28-
run: go test -v ./...
32+
run: |
33+
# Run tests excluding test fixtures
34+
go test -v ./analyzer ./tree ./output
2935
3036
- name: Run E2E Integration Tests
3137
run: |
@@ -34,7 +40,7 @@ jobs:
3440
go test -v -run TestSpecificFunctions
3541
3642
- name: Test with Coverage
37-
run: go test -v -coverprofile=coverage.out ./...
43+
run: go test -v -coverprofile=coverage.out ./analyzer ./tree ./output
3844

3945
- name: Upload Coverage Report
4046
uses: actions/upload-artifact@v4

tests/fixtures/testproject/service/handler.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package service
22

3-
import "main"
4-
53
type Handler struct {
64
name string
75
}

0 commit comments

Comments
 (0)