Skip to content

Commit

Permalink
Create consolidated action for verification of auto-generated / forma…
Browse files Browse the repository at this point in the history
…tted artifacts

Signed-off-by: Anish Asthana <[email protected]>
  • Loading branch information
anishasthana committed Aug 3, 2023
1 parent ca3baf6 commit 42541d8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 20 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/verify_generated_files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Verify Generated Files and Import Organization
on:
push:
branches:
- '**'
paths:
- '**.go'
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
20 changes: 0 additions & 20 deletions .github/workflows/verify_imports.yml

This file was deleted.

0 comments on commit 42541d8

Please sign in to comment.