chore(ci): remove tidy check
- Not really needed with newer `go install` - Conflicts with Go 1.17 go.mod format - Conflicts with manual indirect dependency upgrade
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -52,9 +52,6 @@ jobs:
|
|||||||
- name: Linting
|
- name: Linting
|
||||||
run: docker build --target lint .
|
run: docker build --target lint .
|
||||||
|
|
||||||
- name: Go mod tidy check
|
|
||||||
run: docker build --target tidy .
|
|
||||||
|
|
||||||
- name: Build test image
|
- name: Build test image
|
||||||
run: docker build --target test -t test-container .
|
run: docker build --target test -t test-container .
|
||||||
|
|
||||||
|
|||||||
@@ -30,15 +30,6 @@ FROM --platform=${BUILDPLATFORM} base AS lint
|
|||||||
COPY .golangci.yml ./
|
COPY .golangci.yml ./
|
||||||
RUN golangci-lint run --timeout=10m
|
RUN golangci-lint run --timeout=10m
|
||||||
|
|
||||||
FROM --platform=${BUILDPLATFORM} base AS tidy
|
|
||||||
RUN git init && \
|
|
||||||
git config user.email ci@localhost && \
|
|
||||||
git config user.name ci && \
|
|
||||||
git add -A && git commit -m ci && \
|
|
||||||
sed -i '/\/\/ indirect/d' go.mod && \
|
|
||||||
go mod tidy && \
|
|
||||||
git diff --exit-code -- go.mod
|
|
||||||
|
|
||||||
FROM --platform=${BUILDPLATFORM} base AS build
|
FROM --platform=${BUILDPLATFORM} base AS build
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
ARG VERSION=unknown
|
ARG VERSION=unknown
|
||||||
|
|||||||
Reference in New Issue
Block a user