Skip to content

deps: update actions/checkout action to v7 (#1284) #610

deps: update actions/checkout action to v7 (#1284)

deps: update actions/checkout action to v7 (#1284) #610

Workflow file for this run

---
name: Lint
on:
push:
branches: [main]
pull_request:
jobs:
helm:
runs-on: ubuntu-latest
name: Helm Validation ${{ matrix.helm }}
strategy:
matrix:
helm:
- v3.19.2 # renovate: datasource=github-releases depName=helm/helm versioning=same-major
- v4.0.0 # renovate: datasource=github-releases depName=helm/helm versioning=same-major
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: 3.x
- uses: yokawasa/action-setup-kube-tools@9d39563c24d4a419d1a8289c34d6da5a6171252c # v0.13.5
with:
setup-tools: |
helm
helm: ${{ matrix.helm }}
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: none || true
# Run with pre-commit to get diff check
- name: helm-validation
run: |
pre-commit run helm-lint --all
pre-commit run helm-snapshots --all
pre-commit run deploy-manifests --all
pre-commit:
runs-on: ubuntu-latest
env:
# Helm lints are executed in a separate action with a version matrix
SKIP: "helm-lint,helm-snapshots,deploy-manifests"
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: 3.x
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ~/.cache/golangci-lint
key: pre-commit-golangci-lint|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}|${{ hashFiles('**/*.go') }}
restore-keys: |
pre-commit-golangci-lint|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}|
pre-commit-golangci-lint|${{ env.pythonLocation }}|
pre-commit-golangci-lint|
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1