From c05cc378f0cebe11d7b4950a573062828bfcf9d4 Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Mon, 29 Aug 2022 20:43:40 +0200 Subject: [PATCH] Run generate explicitly --- .github/workflows/go.yml | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f8eae93..18d3311 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,6 +19,9 @@ jobs: with: go-version: 1.17 + - name: Generate + run: go generate ./... + - name: Build run: go build -v ./... diff --git a/Dockerfile b/Dockerfile index 21f9383..5aadd63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:alpine as build WORKDIR /root COPY . /root -RUN go build . +RUN go generate ./... && go build . FROM alpine:latest