Install stringer explicitly

This commit is contained in:
Mathias Petermann 2022-08-29 20:51:43 +02:00
parent c05cc378f0
commit aa58484539
No known key found for this signature in database
GPG key ID: DADC3DF6E81B66C1
2 changed files with 6 additions and 3 deletions

View file

@ -12,13 +12,16 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v3
with: with:
go-version: 1.17 go-version: 1.17
- name: install stringer
run: go install golang.org/x/tools/cmd/stringer@latest
- name: Generate - name: Generate
run: go generate ./... run: go generate ./...

View file

@ -2,7 +2,7 @@ FROM golang:alpine as build
WORKDIR /root WORKDIR /root
COPY . /root COPY . /root
RUN go generate ./... && go build . RUN go install golang.org/x/tools/cmd/stringer@latest && go generate ./... && go build .
FROM alpine:latest FROM alpine:latest