2020-01-10 15:52:38 +00:00
|
|
|
name: Lint and Test Charts
|
|
|
|
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2020-04-30 09:18:59 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Fetch history
|
|
|
|
run: git fetch --prune --unshallow
|
2020-01-10 15:52:38 +00:00
|
|
|
|
|
|
|
- name: Run chart-testing (lint)
|
|
|
|
id: lint
|
2020-08-27 15:31:27 +00:00
|
|
|
uses: helm/chart-testing-action@v1.0.0
|
2020-01-10 15:52:38 +00:00
|
|
|
with:
|
2020-01-10 18:57:02 +00:00
|
|
|
command: lint
|
2020-04-30 09:18:59 +00:00
|
|
|
config: ct.yaml
|
2020-01-10 15:52:38 +00:00
|
|
|
|
|
|
|
- name: Create kind cluster
|
2020-08-27 15:31:27 +00:00
|
|
|
uses: helm/kind-action@v1.0.0
|
2020-01-10 15:52:38 +00:00
|
|
|
if: steps.lint.outputs.changed == 'true'
|
|
|
|
|
|
|
|
- name: Run chart-testing (install)
|
2020-08-27 15:31:27 +00:00
|
|
|
uses: helm/chart-testing-action@v1.0.0
|
2020-01-10 15:52:38 +00:00
|
|
|
with:
|
|
|
|
command: install
|
2020-04-30 09:18:59 +00:00
|
|
|
config: ct.yaml
|