forked from ray-project/kuberay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add helm lint check in Github Actions (ray-project#554)
Adds a helm lint check to verify that charts are well-formed and properly formatted.
- Loading branch information
1 parent
e27e0f6
commit 3276916
Showing
2 changed files
with
71 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Lint and Test Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
lint-test-helm-3-4: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.4.1 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (lint) | ||
# Run 'helm lint', version checking, YAML schema validation on 'Chart.yaml', | ||
# YAML linting on 'Chart.yaml' and 'values.yaml', and maintainer. | ||
# [Doc]: https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md | ||
run: ct lint --all --chart-dirs helm-chart/ --validate-maintainers=false | ||
|
||
lint-test-helm-3-9: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.9.4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (lint) | ||
# Run 'helm lint', version checking, YAML schema validation on 'Chart.yaml', | ||
# YAML linting on 'Chart.yaml' and 'values.yaml', and maintainer. | ||
# [Doc]: https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md | ||
run: ct lint --all --chart-dirs helm-chart/ --validate-maintainers=false |
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