You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.6 KiB
54 lines
1.6 KiB
name: Lint and Test Charts
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v1
|
|
with:
|
|
version: v3.9.0
|
|
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.2.1
|
|
with:
|
|
version: v3.5.1
|
|
|
|
- name: Run chart-testing (list-changed)
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --config ct.yaml)
|
|
if [[ -n "$changed" ]]; then
|
|
echo "::set-output name=changed::true"
|
|
fi
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: ct lint --config ct.yaml --lint-conf lintconf.yaml --validate-maintainers=false
|
|
|
|
- name: Create k3s cluster
|
|
uses: debianmaster/actions-k3s@master
|
|
with:
|
|
version: 'v1.23.6-k3s1'
|
|
if: steps.list-changed.outputs.changed == 'true'
|
|
|
|
- name: Wait for traefik
|
|
run: |
|
|
kubectl -n kube-system wait --for=condition=complete job/helm-install-traefik-crd
|
|
kubectl -n kube-system wait --for=condition=complete job/helm-install-traefik
|
|
kubectl -n kube-system wait --for=condition=available deploy/traefik
|
|
if: steps.list-changed.outputs.changed == 'true'
|
|
|
|
- name: Run chart-testing (install)
|
|
run: ct install --config ct.yaml --chart-dirs . --charts jitsi
|
|
if: steps.list-changed.outputs.changed == 'true'
|
|
|