ooni-probe-cli/.github/workflows/generate.yml

25 lines
580 B
YAML
Raw Normal View History

# Verifies that `go generate ./...` is not broken
name: generate
on:
push:
branches:
- "release/**"
- "fullbuild"
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: magnetikonline/action-golang-cache@v2
with:
go-version: "${{ steps.goversion.outputs.version }}"
cache-key-suffix: "-generate-${{ steps.goversion.outputs.version }}"
- run: go generate ./...