23 lines
463 B
YAML
23 lines
463 B
YAML
# Verifies that `go generate ./...` is not broken
|
|
name: generate
|
|
on:
|
|
push:
|
|
branches:
|
|
- "release/**"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Get GOVERSION content
|
|
id: goversion
|
|
run: echo ::set-output name=version::$(cat GOVERSION)
|
|
|
|
- uses: actions/setup-go@v1
|
|
with:
|
|
go-version: "${{ steps.goversion.outputs.version }}"
|
|
|
|
- run: go generate ./...
|