Skip to content

猬嗭笍 Bump google-cloud-env from 2.3.1 to 2.4.0 #2998

猬嗭笍 Bump google-cloud-env from 2.3.1 to 2.4.0

猬嗭笍 Bump google-cloud-env from 2.3.1 to 2.4.0 #2998

Workflow file for this run

name: Lint and Test Helm Charts
on: pull_request
permissions:
contents: read
jobs:
lint-test:
runs-on: ubuntu-latest
env:
TARGET_BRANCH: ${{ github.event.repository.default_branch }}
steps:
- id: campfire-configured
env:
CAMPFIRE_MESSAGES_URL: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
run: |
if [ -n "${CAMPFIRE_MESSAGES_URL}" ]; then
echo "configured=true" >> "$GITHUB_OUTPUT"
else
echo "configured=false" >> "$GITHUB_OUTPUT"
fi
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5
with:
version: v3.12.1
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
name: Setup Python
with:
python-version: "3.10"
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 --config ./ct.yaml --target-branch "$TARGET_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 --config ./ct.yaml --target-branch "$TARGET_BRANCH"
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --config ./ct.yaml --target-branch "$TARGET_BRANCH"
- name: Post job failure details to Campfire
if: failure() && steps.campfire-configured.outputs.configured == 'true' && github.base_ref == env.TARGET_BRANCH
continue-on-error: true
uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6
with:
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
template: job_failed