Run tests inside container build
Build and deploy / build (push) Successful in 37s
Build and deploy / deploy (push) Successful in 16s

This commit is contained in:
nicholas committed 2026-09-08 13:03:47 -05:00
1 parent 3500561af7
commit 1c54ce1d92
2 files changed
+1 -3

No files matched your search

-3
View File
@@ -17,9 +17,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Test server
run: docker run --rm -v "$PWD/server:/src" -w /src golang:1.25-alpine go test ./...
- name: Log in to Gitea registry
uses: docker/login-action@v3
with:
+1
View File
@@ -10,6 +10,7 @@ WORKDIR /src/server
COPY server/go.mod server/go.sum ./
RUN go mod download
COPY server/ ./
RUN go test ./...
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/box-manifest-server ./cmd/box-manifest-server
FROM alpine:3.22