Install stringer explicitly
This commit is contained in:
parent
c05cc378f0
commit
aa58484539
2 changed files with 6 additions and 3 deletions
7
.github/workflows/go.yml
vendored
7
.github/workflows/go.yml
vendored
|
@ -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 ./...
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue