chore(deps): Bump the actions-updates group across 1 directory with 12 updates #65
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint and Test Charts | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - charts/** | |
| - .github/workflows/ci-chart.yaml | |
| permissions: | |
| contents: read # Default token to read | |
| jobs: | |
| lint-test: | |
| name: Lint and Test Charts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | |
| with: | |
| version: v3.14.4 | |
| - name: Set up python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '3.x' | |
| check-latest: true | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@6ec842c01de15ebb84c8627d2744a0c2f2755c9f # v2.8.0 | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --target-branch ${DEFAULT_BRANCH}) | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| env: | |
| DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
| - name: Run chart-testing (lint) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: | | |
| ct lint --target-branch ${DEFAULT_BRANCH} | |
| env: | |
| DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
| - name: Check README diff | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: | | |
| docker run --rm --volume "$(pwd):/helm-docs" jnorwood/helm-docs:latest | |
| if ! git diff --exit-code; then | |
| echo "Error: Please update the chart README" | |
| echo " docker run --rm --volume \"\$(pwd):/helm-docs\" jnorwood/helm-docs:latest" | |
| exit 1 | |
| fi | |
| - name: Create kind cluster | |
| if: steps.list-changed.outputs.changed == 'true' | |
| uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 | |
| - name: Prepare cluster for tests | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: | | |
| helm repo add jetstack https://charts.jetstack.io | |
| helm repo update | |
| helm install cert-manager jetstack/cert-manager \ | |
| --namespace cert-manager \ | |
| --create-namespace \ | |
| --set installCRDs=true | |
| kubectl create namespace edera-system | |
| kubectl apply -f ./examples/self-signed-certs/self-signed-certs.yaml \ | |
| --namespace edera-system | |
| - name: Run chart-testing (install) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: | | |
| ct install \ | |
| --namespace edera-system \ | |
| --target-branch ${DEFAULT_BRANCH} | |
| env: | |
| DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} |