feat: run staticcheck during build
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 1m11s

This commit is contained in:
2024-11-29 20:23:02 +01:00
parent a62f0fb037
commit 81bff13edf

View File

@@ -1,10 +1,10 @@
FROM golang:1.23.3@sha256:73f06be4578c9987ce560087e2e2ea6485fb605e3910542cadd8fa09fc5f3e31 AS builder_go
WORKDIR /me-fit
RUN go install github.com/a-h/templ/cmd/templ@latest && go install github.com/vektra/mockery/v2@latest
RUN go install github.com/a-h/templ/cmd/templ@latest && go install github.com/vektra/mockery/v2@latest && go install honnef.co/go/tools/cmd/staticcheck@latest
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN templ generate && mockery && go test ./... && go build -o /me-fit/me-fit .
RUN templ generate && staticcheck ./... && mockery && go test ./... && go build -o /me-fit/me-fit .
FROM node:22.11.0@sha256:5c76d05034644fa8ecc9c2aa84e0a83cd981d0ef13af5455b87b9adf5b216561 AS builder_node