Merge pull request #337 from redhat-cop/renovate/rojopolis-spellcheck… #532
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: Validate Manifests | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- README.md | |
- docs/*.md | |
pull_request: | |
branches: | |
- "main" | |
paths-ignore: | |
- README.md | |
- docs/*.md | |
jobs: | |
lint-bash: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
with: | |
version: v0.8.0 | |
severity: warning | |
lint-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Validate YAML | |
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3 | |
with: | |
format: github | |
lint-manifests: | |
runs-on: ubuntu-latest | |
env: | |
BIN_PATH: /usr/bin | |
steps: | |
- name: Install Kustomize | |
run: | | |
set -x | |
LATEST=$( curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest | jq .name | sed 's#kustomize/##; s#"##g') | |
BIN_VERSION=${KUSTOMIZE_VERSION:-${LATEST}} | |
DOWNLOAD_URL=https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${BIN_VERSION}/kustomize_${BIN_VERSION}_linux_amd64.tar.gz | |
curl "${DOWNLOAD_URL}" -sL | sudo tar zx -C "${BIN_PATH}/" kustomize | |
sudo chmod +x "${BIN_PATH}"/kustomize | |
- name: Code Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Validate Manifests | |
run: | | |
# [ -d ./bootstrap/base ] && touch bootstrap/base/sealed-secrets-secret.yaml | |
./scripts/validate_kustomize.sh | |
./scripts/validate_helm.sh |