-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup chart lint and tests using Github Action
- Loading branch information
1 parent
d851b29
commit 64f1e21
Showing
2 changed files
with
37 additions
and
0 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,6 @@ | ||
chart-dirs: . | ||
charts: | ||
- gocd | ||
helm-extra-args: --timeout 1200s | ||
check-version-increment: true | ||
debug: true |
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,31 @@ | ||
name: Lint and Test Charts | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Run chart-testing (lint) | ||
id: lint | ||
uses: helm/chart-testing-action@v1.0.0 | ||
with: | ||
command: lint | ||
config: .github/ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.0.0 | ||
# Only build a kind cluster if there are chart changes to test. | ||
if: steps.lint.outputs.changed == 'true' | ||
|
||
- name: Run chart-testing (install) | ||
uses: helm/chart-testing-action@v1.0.0 | ||
with: | ||
command: install | ||
config: .github/ct.yaml |