-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 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 |
---|---|---|
|
@@ -33,6 +33,21 @@ jobs: | |
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.54 | ||
# Generate example charts | ||
- name: Generate example charts | ||
run: | | ||
cat test_data/sample-app.yaml | go run ./cmd/helmify examples/app | ||
cat test_data/k8s-operator-kustomize.output | go run ./cmd/helmify examples/operator | ||
- name: Check that chart examples were commited | ||
run: | | ||
if [[ -n "$(git status --porcelain)" ]]; then | ||
echo "::error::Chart examples generation step has uncommitted changes. Please run following commands and commit the results: | ||
- \`cat test_data/sample-app.yaml | go run ./cmd/helmify examples/app\` | ||
- \`cat test_data/k8s-operator-kustomize.output | go run ./cmd/helmify examples/operator\`" | ||
exit 1 | ||
else | ||
echo "Chart examples generation check passed. No uncommitted changes." | ||
fi | ||
# Dry-run generated charts in cluster | ||
- name: Install k8s cluster | ||
uses: helm/[email protected] | ||
|
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