mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
40 lines
844 B
YAML
40 lines
844 B
YAML
name: "Charts: Lint"
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
checkoutCommit:
|
|
required: true
|
|
type: string
|
|
chartChanges:
|
|
required: true
|
|
type: string
|
|
|
|
env:
|
|
HELM_VERSION: 3.9.2
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint charts
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ inputs.checkoutCommit }}
|
|
|
|
- name: Install Kubernetes tools
|
|
uses: yokawasa/action-setup-kube-tools@v0.8.2
|
|
with:
|
|
setup-tools: |
|
|
helmv3
|
|
helm: "${{ env.HELM_VERSION }}"
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.2.1
|
|
|
|
- name: Run chart-testing (lint)
|
|
id: lint
|
|
if: inputs.chartChanges != ''
|
|
run: ct lint --config .ci/ct/ct.yaml
|