Skip to content

Commit

Permalink
Add up-to-date generated code ci checks
Browse files Browse the repository at this point in the history
  • Loading branch information
indiebrain committed Nov 27, 2023
1 parent 1ae4e40 commit 0b0f686
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ jobs:
version: v1.53
args: --timeout=15m

codegen-up-to-date:
name: Code generation up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Kubebuilder client and CRD up-to-date
run: |
make update-codegen generate-crd
- name: Check for changes in generated files
run: |
git diff --exit-code
- name: Fail if changes detected
if: steps.codegen-up-to-date.outputs.exit_code != 0
run: |
exit 1
unit-test:
name: Unit test
runs-on: ubuntu-latest
Expand All @@ -35,7 +51,7 @@ jobs:
integration-test:
name: Integration test
runs-on: ubuntu-latest
needs: [check, unit-test]
needs: [check, codegen-up-to-date, unit-test]
strategy:
matrix:
kubernetes:
Expand Down

0 comments on commit 0b0f686

Please sign in to comment.