File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,21 @@ jobs:
2222 os : [ubuntu-latest, windows-latest]
2323 name : Unit Tests
2424 runs-on : ${{ matrix.os }}
25+ timeout-minutes : 30
2526 steps :
2627 - uses : actions/setup-go@v5
2728 with :
2829 go-version : ${{ matrix.go-version }}
30+ cache : true
2931 - uses : actions/checkout@v4
3032 with :
3133 fetch-depth : 0
34+ - name : Setup test environment
35+ run : |
36+ go version
37+ go env
38+ - name : Download dependencies
39+ run : go mod download
3240 - name : Run unit tests
3341 run : make test-all
42+ timeout-minutes : 25
Original file line number Diff line number Diff line change @@ -757,7 +757,7 @@ RESTART_CASE ?= false
757757CNI_TYPE ?= cilium
758758
759759test-all : # # run all unit tests.
760- go test -mod=readonly -buildvcs=false -tags " unit" --skip ' TestE2E*' -race -covermode atomic -coverprofile=coverage-all.out $(COVER_PKG ) /...
760+ go test -mod=readonly -buildvcs=false -tags " unit" --skip ' TestE2E*' -race -covermode atomic -coverprofile=coverage-all.out -timeout=20m $(COVER_PKG ) /...
761761 go tool cover -func=coverage-all.out
762762
763763test-integration : # # run all integration tests.
You can’t perform that action at this time.
0 commit comments