-
Notifications
You must be signed in to change notification settings - Fork 150
50 lines (47 loc) · 1.48 KB
/
Copy pathgenerate.yaml
File metadata and controls
50 lines (47 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: generate
on:
push:
branches:
- main
paths:
- examples/**
pull_request:
jobs:
jsonnet:
runs-on: ubuntu-latest
name: Generate Jsonnet examples
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- uses: zendesk/setup-jsonnet@v16
- run: go install github.com/brancz/gojsontoyaml@latest
- run: make --always-make examples && git diff --exit-code
manifests:
runs-on: ubuntu-latest
name: Generate controller-gen manifests
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- run: go install github.com/brancz/gojsontoyaml@latest
# Regenerate everything controller-gen owns (canonical CRD under config/crd/bases, the
# derived JSON, RBAC role and deepcopy code) and fail if anything drifts from the
# committed state. Fix locally with `make generate`.
- run: make generate && git diff --exit-code
proto:
runs-on: ubuntu-latest
name: Generate protobuf code
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
# Regenerate the committed Go + TypeScript stubs and fail if anything drifts
# from the plugin versions pinned in buf.gen.yaml. Fix locally with `make proto`.
- run: make proto && git diff --exit-code