2021-04-16 12:13:43 -04:00
|
|
|
name: Lint and Test Charts
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-04-17 12:13:36 -04:00
|
|
|
types: [opened, edited, reopened, synchronize]
|
2024-01-23 23:30:53 -05:00
|
|
|
paths:
|
|
|
|
- "helm/**"
|
2021-04-16 12:13:43 -04:00
|
|
|
|
2024-02-01 10:08:41 -05:00
|
|
|
# cancel previous workflow jobs for PRs
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-04-16 12:13:43 -04:00
|
|
|
jobs:
|
|
|
|
lint-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-04-17 12:13:36 -04:00
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2024-02-01 13:56:33 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-04-16 12:13:43 -04:00
|
|
|
with:
|
2021-04-17 12:13:36 -04:00
|
|
|
persist-credentials: false
|
|
|
|
submodules: recursive
|
2021-04-16 12:13:43 -04:00
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Helm
|
2024-04-18 15:13:21 -04:00
|
|
|
uses: azure/setup-helm@v4
|
2021-04-16 12:13:43 -04:00
|
|
|
with:
|
|
|
|
version: v3.5.4
|
|
|
|
|
2024-04-10 17:32:30 -04:00
|
|
|
- name: Setup Python
|
|
|
|
uses: ./.github/actions/setup-backend/
|
2021-04-16 12:13:43 -04:00
|
|
|
with:
|
2024-04-10 17:32:30 -04:00
|
|
|
install-superset: 'false'
|
2021-04-16 12:13:43 -04:00
|
|
|
|
|
|
|
- name: Set up chart-testing
|
2021-04-17 12:13:36 -04:00
|
|
|
uses: ./.github/actions/chart-testing-action
|
2021-04-16 12:13:43 -04:00
|
|
|
|
|
|
|
- name: Run chart-testing (list-changed)
|
|
|
|
id: list-changed
|
|
|
|
run: |
|
|
|
|
changed=$(ct list-changed --print-config)
|
|
|
|
if [[ -n "$changed" ]]; then
|
2024-01-31 13:40:07 -05:00
|
|
|
echo "changed=true" >> $GITHUB_OUTPUT
|
2021-04-16 12:13:43 -04:00
|
|
|
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
|
2022-10-27 16:03:21 -04:00
|
|
|
CT_CHART_REPOS: bitnami=https://charts.bitnami.com/bitnami
|