Skip to content

Commit

Permalink
chore(ci): remove tidy stage
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 2, 2022
1 parent 5413857 commit e001980
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
- name: Linting
run: docker build --target lint .

- name: Go mod tidy check
run: docker build --target tidy .

- name: Build test image
run: docker build --target test -t test-container .

Expand Down
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ FROM --platform=${BUILDPLATFORM} base AS lint
COPY .golangci.yml ./
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
COPY --from=xcputranslate /xcputranslate /usr/local/bin/xcputranslate
ARG TARGETPLATFORM
Expand Down

0 comments on commit e001980

Please sign in to comment.