CI: add go mod tidy to Go agent workflow to fix missing go.sum
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Test agent
|
- name: Test agent
|
||||||
run: |
|
run: |
|
||||||
export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"
|
export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"
|
||||||
cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go test ./...
|
cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go mod tidy && go test ./...
|
||||||
|
|
||||||
- name: Vet
|
- name: Vet
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -100,3 +100,4 @@ func runWatch(sqsQueue, endpoint, apiKey string, interval int) error {
|
|||||||
// TODO: SQS consumer loop → scanner → reporter
|
// TODO: SQS consumer loop → scanner → reporter
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
// Re-trigger Go CI
|
||||||
|
|||||||
Reference in New Issue
Block a user