diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 18d3311..9af3c4a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 ./... diff --git a/Dockerfile b/Dockerfile index 5aadd63..7a797cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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