2022-07-01 12:11:32 +02:00
|
|
|
# Verifies that `go generate ./...` is not broken
|
2021-02-02 12:05:47 +01:00
|
|
|
name: generate
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-05-06 19:56:55 +02:00
|
|
|
- "release/**"
|
2022-08-29 17:33:42 +02:00
|
|
|
- "fullbuild"
|
2022-07-01 12:11:32 +02:00
|
|
|
|
2021-02-02 12:05:47 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
2021-05-06 19:56:55 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2021-02-02 12:05:47 +01:00
|
|
|
steps:
|
2022-08-17 11:39:38 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Get GOVERSION content
|
|
|
|
id: goversion
|
|
|
|
run: echo ::set-output name=version::$(cat GOVERSION)
|
|
|
|
|
2022-08-30 15:29:09 +02:00
|
|
|
- uses: magnetikonline/action-golang-cache@v2
|
2021-02-02 12:05:47 +01:00
|
|
|
with:
|
2022-08-17 11:39:38 +02:00
|
|
|
go-version: "${{ steps.goversion.outputs.version }}"
|
2022-08-30 15:29:09 +02:00
|
|
|
cache-key-suffix: "-generate-${{ steps.goversion.outputs.version }}"
|
2022-08-17 11:39:38 +02:00
|
|
|
|
2021-02-02 12:05:47 +01:00
|
|
|
- run: go generate ./...
|