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:
|
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 ./...
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue