Skip to content

Commit 131f040

Browse files
committed
Fix: Remove work.go Referrences
1 parent f7847bd commit 131f040

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/compuite-agent-ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- 'pkg/**'
99
- 'sdk/**'
1010
- 'go.mod'
11+
- 'go.sum'
1112
- '.github/workflows/compute-agent-ci.yml'
1213
pull_request:
1314
branches: [ main, master ]
@@ -16,6 +17,7 @@ on:
1617
- 'pkg/**'
1718
- 'sdk/**'
1819
- 'go.mod'
20+
- 'go.sum'
1921
- '.github/workflows/compute-agent-ci.yml'
2022

2123
jobs:
@@ -29,13 +31,13 @@ jobs:
2931
- name: Setup Go
3032
uses: actions/setup-go@v5
3133
with:
32-
go-version-file: go.work # Better for monorepo
34+
go-version-file: compute-agent/go.mod # Point to service go.mod
3335
cache: true
3436

3537
- name: Run unit tests with race and coverage
3638
run: |
3739
cd compute-agent
38-
make test-unit # or go test ./... -race -coverprofile=coverage.txt
40+
make test-unit || go test ./... -race -coverprofile=coverage.txt
3941
4042
- name: Upload coverage artifact
4143
uses: actions/upload-artifact@v4
@@ -55,7 +57,7 @@ jobs:
5557
- name: Setup Go
5658
uses: actions/setup-go@v5
5759
with:
58-
go-version-file: go.work
60+
go-version-file: compute-agent/go.mod
5961
cache: true
6062

6163
- name: Run end-to-end tests
@@ -74,7 +76,7 @@ jobs:
7476
- name: Setup Go
7577
uses: actions/setup-go@v5
7678
with:
77-
go-version-file: go.work
79+
go-version-file: compute-agent/go.mod
7880
cache: true
7981

8082
- name: Build agent and client
@@ -97,7 +99,7 @@ jobs:
9799
- name: Build optimized runtime image
98100
uses: docker/build-push-action@v6
99101
with:
100-
context: . # Root context
102+
context: . # Root context (needed for pkg/)
101103
file: ./compute-agent/Dockerfile
102104
target: runtime
103105
push: false

0 commit comments

Comments
 (0)