-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for generating manifests and code (#2234)
Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
Showing
5 changed files
with
29 additions
and
12 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 |
---|---|---|
|
@@ -38,6 +38,15 @@ jobs: | |
false | ||
fi | ||
- name: Generate code | ||
run: | | ||
make generate | ||
if ! git diff --quiet; then | ||
echo "Need to re-run 'make generate' and commit the changes." | ||
git diff | ||
false | ||
fi | ||
- name: Run go fmt check | ||
run: | | ||
make go-fmt | ||
|
@@ -145,6 +154,18 @@ jobs: | |
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Generate manifests | ||
run: | | ||
make manifests | ||
if ! git diff --quiet; then | ||
echo "Need to re-run 'make manifests' and commit the changes." | ||
git diff | ||
false | ||
fi | ||
- name: Detect CRDs drift between chart and manifest | ||
run: make detect-crds-drift | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
env: | ||
|
@@ -161,10 +182,6 @@ jobs: | |
BRANCH: ${{ steps.get_branch.outputs.BRANCH }} | ||
run: ct lint --check-version-increment=false --target-branch $BRANCH | ||
|
||
- name: Detect CRDs drift between chart and manifest | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: make detect-crds-drift | ||
|
||
- name: Produce the helm documentation | ||
if: steps.list-changed.outputs.changed == 'true' | ||
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
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
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
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