feat(deps): update helm release argo-cd to v7 #481
This file contains 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/**" | |
types: | |
- opened | |
- synchronize | |
workflow_dispatch: | |
env: | |
# make install test false for now | |
DO_INSTALL_TEST: false | |
jobs: | |
lint-test: | |
if: github.head_ref != 'release-please--branches--main' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.13.0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2 | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> "$GITHUB_OUTPUT" | |
echo "charts=$(echo "$changed" | tr '\n' ' ')" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Run chart-testing (lint) | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct lint --config .github/config/chart-testing.yaml | |
- name: Run chart-testing (template) | |
if: steps.list-changed.outputs.changed == 'true' | |
id: update-dependencies | |
run: | | |
for updated_chart in ${{ steps.list-changed.outputs.charts }}; do | |
echo "================================================================================" | |
echo " templating $updated_chart" | |
echo "================================================================================" | |
helm dependency update $updated_chart | |
helm template $updated_chart | |
done | |
- name: Create kind cluster | |
if: ${{ steps.list-changed.outputs.changed == 'true' && env.DO_INSTALL_TEST == 'true' }} | |
uses: helm/kind-action@v1 | |
with: | |
config: .github/config/kind-cluster-config.yaml | |
- name: Install foundation packages | |
if: ${{ steps.list-changed.outputs.changed == 'true' && env.DO_INSTALL_TEST == 'true' }} | |
run: | | |
# istio | |
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.18.3 sh - | |
istio-1.18.3/bin/istioctl install --set profile=demo -y | |
# cert-manager | |
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.1/cert-manager.yaml | |
# external-secrets | |
kubectl apply -f https://github.com/external-secrets/external-secrets/releases/download/v0.9.5/external-secrets.yaml | |
- name: Run chart-testing (install) | |
if: ${{ steps.list-changed.outputs.changed == 'true' && env.DO_INSTALL_TEST == 'true' }} | |
run: ct install --config .github/config/chart-testing.yaml |