Add generate job
This commit is contained in:
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@@ -27,6 +27,24 @@ jobs:
|
|||||||
go-version: "${{ env.GO_VERSION }}"
|
go-version: "${{ env.GO_VERSION }}"
|
||||||
- run: "go build ./..."
|
- run: "go build ./..."
|
||||||
|
|
||||||
|
generate:
|
||||||
|
needs: "build"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@v2"
|
||||||
|
- uses: "actions/cache@v2"
|
||||||
|
with:
|
||||||
|
path: "~/go/pkg/mod"
|
||||||
|
key: "${{ runner.os }}-gomod-${{ hashFiles('**/go.sum') }}"
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gomod-
|
||||||
|
|
||||||
|
- uses: "actions/setup-go@v2"
|
||||||
|
with:
|
||||||
|
go-version: "${{ env.GO_VERSION }}"
|
||||||
|
- run: "go generate ./..."
|
||||||
|
- run: "git diff --compact-summary --exit-code"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user