Workflow file for this run
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
name: Verify Generated Files and Import Organization | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- '**.go' | |
- '**go.mod' | |
- '**go.sum' | |
- 'config/**' | |
tags-ignore: | |
- 'v*' | |
pull_request: | |
paths: | |
- '**.go' | |
- '**go.mod' | |
- '**go.sum' | |
- 'config/**' | |
jobs: | |
verify-imports: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: Verify that imports are organized | |
run: make verify-imports | |
verify-manifests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated | |
run: make manifests && git diff --exit-code |