mirror of
https://github.com/outbackdingo/n8n-chart.git
synced 2026-01-27 10:19:44 +00:00
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Lint and Test Charts
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v4
|
|
with:
|
|
version: v3.8.1
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.6.1
|
|
|
|
- name: Add helm repos
|
|
run: |
|
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
|
|
|
- name: Run chart-testing (list-changed)
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --chart-dirs .)
|
|
if [[ -n "$changed" ]]; then
|
|
echo "::set-output name=changed::true"
|
|
fi
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --chart-dirs . --validate-maintainers=false --check-version-increment=false
|
|
|
|
- name: Create kind cluster
|
|
uses: helm/kind-action@v1.12.0
|
|
if: steps.list-changed.outputs.changed == 'true'
|
|
|
|
- name: Run chart-testing (install)
|
|
if: steps.list-changed.outputs.changed == 'true'
|
|
run: ct install --target-branch ${{ github.event.repository.default_branch }} --chart-dirs .
|