Skip to content

Bump the gh-minor group across 1 directory with 16 updates #448

Bump the gh-minor group across 1 directory with 16 updates

Bump the gh-minor group across 1 directory with 16 updates #448

Workflow file for this run

name: helm-test
on:
pull_request:
branches:
- 'main'
paths:
- 'charts/tofu-controller/**'
- '.github/workflows/helm-test.yaml'
permissions: read-all
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.0.0
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v3.5.0
with:
version: latest
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.10"
- name: Set up chart-testing
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- 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
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (lint)
run: ct lint --check-version-increment=false --config ct.yaml
if: steps.list-changed.outputs.changed == 'true'
- name: Build the tofu-controller container image
run: |
make docker-buildx MANAGER_IMG=test/tofu-controller RUNNER_IMG=test/tf-runner TAG=ct \
BUILD_ARGS="--load"
if: steps.list-changed.outputs.changed == 'true'
- name: Create kind cluster
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
if: steps.list-changed.outputs.changed == 'true'
- name: Load test images into KIND
run: |
kind load docker-image --name=chart-testing test/tofu-controller:ct
kind load docker-image --name=chart-testing test/tf-runner:ct
if: steps.list-changed.outputs.changed == 'true'
- name: Install Flux CLI
uses: fluxcd/flux2/action@8d5f40dca5aa5d3c0fc3414457dda15a0ac92fa4 # main
if: steps.list-changed.outputs.changed == 'true'
- name: Install Source controller
run: flux install --components=source-controller
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
run: ct install --config ct.yaml
if: steps.list-changed.outputs.changed == 'true'