Skip to content

fix: image status

fix: image status #31

name: kubebuidler-generate
# This GitHub action runs your tests for each pull request and push.
# Optionally, you can turn it on using a schedule for regular testing.
on:
pull_request:
paths:
- 'api/**'
- 'internal/controller/**'
# only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
kubebuilder:
name: Kube Builder
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v3.5.0
- uses: actions/setup-go@v5 # v4.0.0
with:
go-version-file: 'go.mod'
- run: make manifests
- run: make generate
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'make generate and make manifests' command and commit."; exit 1)