Skip to content

Commit 42541d8

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

File tree

2 files changed

+42
-20
lines changed

2 files changed

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

.github/workflows/verify_imports.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)