mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
29 lines
983 B
YAML
29 lines
983 B
YAML
name: Lint and Test Charts
|
|
on: pull_request
|
|
jobs:
|
|
lint-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Fetch history
|
|
run: |
|
|
git fetch --prune --unshallow;
|
|
echo ::set-env name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }})
|
|
- name: Run chart-testing (lint)
|
|
id: lint
|
|
uses: helm/chart-testing-action@v1.0.0
|
|
if: "! contains(env.commitmsg, '[skip lint]')"
|
|
with:
|
|
command: lint
|
|
config: ct.yaml
|
|
- name: Create kind cluster
|
|
uses: helm/kind-action@v1.0.0
|
|
if: "steps.lint.outputs.changed == 'true' && ! contains(env.commitmsg, '[skip install]')"
|
|
- name: Run chart-testing (install)
|
|
uses: helm/chart-testing-action@v1.0.0
|
|
if: "steps.lint.outputs.changed == 'true' && ! contains(env.commitmsg, '[skip install]')"
|
|
with:
|
|
command: install
|
|
config: ct.yaml
|