-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create consolidated action for verification of auto-generated / forma…
…tted artifacts Signed-off-by: Anish Asthana <[email protected]>
- Loading branch information
1 parent
c2d2f88
commit 8bf0aab
Showing
2 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Verify Generated Files and Import Organization | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
paths: | ||
- '**.go' | ||
- '**go.mod' | ||
- '**go.sum' | ||
tags-ignore: | ||
- 'v*' | ||
pull_request: | ||
paths: | ||
- '**.go' | ||
- '**go.mod' | ||
- '**go.sum' | ||
jobs: | ||
verify-generated-functions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Verify that the DeepCopy, DeepCopyInto, and DeepCopyObject method implementations have been generated | ||
run: make generate && git diff --exit-code | ||
|
||
verify-generate-client: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Verify that the latest client has been generated | ||
run: make generate-client && git diff --exit-code | ||
|
||
verify-imports: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Verify that imports are organized | ||
run: make verify-imports | ||
|
||
verify-manifests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated | ||
run: make manifests && git diff --exit-code |
This file was deleted.
Oops, something went wrong.