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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: install stringer
run: go install golang.org/x/tools/cmd/stringer@latest
- name: Generate
run: go generate ./...

View file

@ -2,7 +2,7 @@ FROM golang:alpine as build
WORKDIR /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