mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 18:09:58 +00:00
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
name: Test charts
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- '.github/configs/**'
|
|
- '.github/workflows/helm-*.yml'
|
|
- 'charts/**'
|
|
- 'Makefile'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
linter-artifacthub:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: artifacthub/ah
|
|
options: --user root
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
- name: Run ah lint
|
|
working-directory: ./charts/
|
|
run: ah lint
|
|
lint:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
|
- name: Linting Chart
|
|
run: helm lint ./charts/capsule
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: make helm-lint
|
|
|
|
- name: Run docs-testing (helm-docs)
|
|
id: helm-docs
|
|
run: |
|
|
make helm-docs
|
|
if [[ $(git diff --stat) != '' ]]; then
|
|
echo -e '\033[0;31mDocumentation outdated! (Run make helm-docs locally and commit)\033[0m ❌'
|
|
git diff --color
|
|
exit 1
|
|
else
|
|
echo -e '\033[0;32mDocumentation up to date\033[0m ✔'
|
|
fi
|
|
- name: Run schema-testing (helm-schema)
|
|
id: helm-schema
|
|
run: |
|
|
make helm-schema
|
|
if [[ $(git diff --stat) != '' ]]; then
|
|
echo -e '\033[0;31mSchema outdated! (Run make helm-schema locally and commit)\033[0m ❌'
|
|
git diff --color
|
|
exit 1
|
|
else
|
|
echo -e '\033[0;32mSchema up to date\033[0m ✔'
|
|
fi
|
|
- name: Run chart-testing (install)
|
|
run: HELM_KIND_CONFIG="./hack/kind-cluster.yml" make helm-test
|