Skip to content

build(deps): bump actions/upload-artifact from 3 to 4 #19

build(deps): bump actions/upload-artifact from 3 to 4

build(deps): bump actions/upload-artifact from 3 to 4 #19

Workflow file for this run

name: Lint and Test Charts
on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
env:
# we need to set this to a "custom" value instead of ${{ github.event.repository.default_branch }} because "master" is currently the default branch
git_default_branch: "main"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1
- name: Add chart repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Update chart repo index
run: helm repo update
- uses: actions/setup-python@v5
with:
python-version: '3.9'
check-latest: true
- name: Login to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ env.git_default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ env.git_default_branch }} --validate-maintainers=false --chart-yaml-schema .github/configs/chart_schema.yaml
# - name: Create kind cluster
# if: steps.list-changed.outputs.changed == 'true'
# uses: helm/[email protected]
#
# - name: Run chart-testing (install)
# if: steps.list-changed.outputs.changed == 'true'
# run: ct install --target-branch ${{ env.git_default_branch }}