Skip to content

Commit 6c3368e

Browse files
committed
Create consolidated action for verification of auto-generated / formatted artifacts
Signed-off-by: Anish Asthana <[email protected]>
1 parent ca3baf6 commit 6c3368e

File tree

2 files changed

+44
-20
lines changed

2 files changed

+44
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Verify Generated Files and Import Organization
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
paths:
7+
- '**.go'
8+
- '**go.mod'
9+
- '**go.sum'
10+
tags-ignore:
11+
- 'v*'
12+
pull_request:
13+
paths:
14+
- '**.go'
15+
- '**go.mod'
16+
- '**go.sum'
17+
jobs:
18+
verify-generated-functions:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Verify that the DeepCopy, DeepCopyInto, and DeepCopyObject method implementations have been generated
23+
run: make generate && git diff --exit-code
24+
25+
verify-generate-client:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- name: Verify that the latest client has been generated
30+
run: make generate-client && git diff --exit-code
31+
32+
verify-imports:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Verify that imports are organized
37+
run: make verify-imports
38+
39+
verify-manifests:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v3
43+
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated
44+
run: make manifests && git diff --exit-code

.github/workflows/verify_imports.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)