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
|
2020-09-06 22:10:34 +00:00
|
|
|
run: |
|
|
|
|
git fetch --prune --unshallow;
|
|
|
|
echo ::set-env name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }})
|
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-09-06 22:10:34 +00:00
|
|
|
if: !contains(env.commitmsg, '[skip lint]')
|
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-09-06 22:10:34 +00:00
|
|
|
if: steps.lint.outputs.changed == 'true' && !contains(env.commitmsg, '[skip install]')
|
2020-01-10 15:52:38 +00:00
|
|
|
- name: Run chart-testing (install)
|
2020-08-27 15:31:27 +00:00
|
|
|
uses: helm/chart-testing-action@v1.0.0
|
2020-09-06 22:10:34 +00:00
|
|
|
if: steps.lint.outputs.changed == 'true' && !contains(env.commitmsg, '[skip install]')
|
2020-01-10 15:52:38 +00:00
|
|
|
with:
|
|
|
|
command: install
|
2020-04-30 09:18:59 +00:00
|
|
|
config: ct.yaml
|