Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d517762b0 |
+3
-3
@@ -12,7 +12,7 @@ RUN go mod download
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN golangci-lint run --config .golangci.yml --build-tags recorded ./...
|
RUN golangci-lint run --config .golangci.yml ./...
|
||||||
|
|
||||||
# Test phase, same shape and for the same reason. The go directive in
|
# Test phase, same shape and for the same reason. The go directive in
|
||||||
# go.mod is a minimum, so this Go may be newer than the linter's. The
|
# go.mod is a minimum, so this Go may be newer than the linter's. The
|
||||||
@@ -45,9 +45,9 @@ RUN --mount=type=tmpfs,target=/root/.cache/go-build \
|
|||||||
|
|
||||||
# Second pass: the recorded requests, too slow for make test under -race.
|
# Second pass: the recorded requests, too slow for make test under -race.
|
||||||
RUN --mount=type=tmpfs,target=/root/.cache/go-build \
|
RUN --mount=type=tmpfs,target=/root/.cache/go-build \
|
||||||
go test -tags no_fs_access,recorded -timeout 90s -cover -run '^TestOrdinary' ./internal/coreruleset/... || \
|
go test -tags no_fs_access,recorded -timeout 90s -cover ./internal/coreruleset/... || \
|
||||||
{ echo "--- Rerunning with -v for details ---"; \
|
{ echo "--- Rerunning with -v for details ---"; \
|
||||||
go test -tags no_fs_access,recorded -timeout 90s -run '^TestOrdinary' -v ./internal/coreruleset/...; exit 1; }
|
go test -tags no_fs_access,recorded -timeout 90s -v ./internal/coreruleset/...; exit 1; }
|
||||||
|
|
||||||
# Tidy stage: `go mod tidy` in the test phase's Go, so that the files it
|
# Tidy stage: `go mod tidy` in the test phase's Go, so that the files it
|
||||||
# writes pass the test phase's check. Nothing else depends on it, so only
|
# writes pass the test phase's check. Nothing else depends on it, so only
|
||||||
|
|||||||
Reference in new issue
Block a user