mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
73 lines
2.3 KiB
YAML
73 lines
2.3 KiB
YAML
name: "Helm: lint and test charts"
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
paths:
|
|
- "helm/**"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# Serialize runs per PR without cancelling: when a first-time contributor's
|
|
# queued runs are approved together, cancel-in-progress lets an older run
|
|
# cancel a newer one, leaving a permanently-cancelled required check on the
|
|
# head SHA. Queued runs are cheap here, so let them all complete.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
lint-test:
|
|
runs-on: ubuntu-26.04
|
|
steps:
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
|
|
with:
|
|
version: v3.21.3
|
|
|
|
- name: Setup Python
|
|
uses: ./.github/actions/setup-backend/
|
|
with:
|
|
install-superset: "false"
|
|
|
|
# Still vendored (not de-vendored like chart-releaser-action below): the
|
|
# allowlisted helm/chart-testing-action@v2.8.0 depends internally on
|
|
# astral-sh/setup-uv@v7.0.0, which isn't itself on the ASF Actions
|
|
# allowlist (only v8.1.0+ are, at apache/infrastructure-actions'
|
|
# actions.yml). Needs an INFRA request before this can de-vendor too.
|
|
- name: Set up chart-testing
|
|
uses: ./.github/actions/chart-testing-action
|
|
|
|
- name: Run chart-testing (list-changed)
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --print-config)
|
|
if [[ -n "$changed" ]]; then
|
|
echo "changed=true" >> $GITHUB_OUTPUT
|
|
fi
|
|
env:
|
|
CT_CHART_DIRS: helm
|
|
CT_SINCE: HEAD
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: ct lint --print-config
|
|
env:
|
|
CT_CHART_DIRS: helm
|
|
CT_LINT_CONF: lintconf.yaml
|
|
CT_SINCE: HEAD
|
|
CT_CHART_REPOS: bitnami=https://charts.bitnami.com/bitnami
|
|
|
|
- name: Set up helm-unittest
|
|
run: helm plugin install https://github.com/helm-unittest/helm-unittest --version v1.1.1
|
|
|
|
- name: Run helm-unittest
|
|
run: helm unittest helm/superset
|