Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit 71e9371

Browse files
committed
CI: Verify generated files
This CI verifies if the generated files are up to date in the project and fails if anything has changed. Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
1 parent 21af444 commit 71e9371

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Verify generated files"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
verify-generation:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v5
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v6
19+
with:
20+
go-version: '1.23'
21+
22+
- name: Install operator-sdk
23+
uses: redhat-actions/openshift-tools-installer@v1
24+
with:
25+
source: github
26+
operator-sdk: 1.38.0
27+
28+
- name: Verify generated files are up to date and fail if anything changed
29+
run: |
30+
make generate
31+
make manifests
32+
git diff --exit-code

0 commit comments

Comments
 (0)