Merge pull request #291 from arslankhanali/main #408
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: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
lint-kustomize: | |
runs-on: ubuntu-latest | |
# env: | |
# KUSTOMIZE_URL: "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.0.0/kustomize_v5.0.0_linux_amd64.tar.gz" | |
# BIN_PATH: /usr/local/bin | |
steps: | |
# Kustomize now comes pre-installed on the "ubuntu-latest" image, no need for manual installation | |
# | |
# - name: Install Kustomize | |
# run: | | |
# echo "Downloading Kustomize from URL: ${KUSTOMIZE_URL} and saving into ${BIN_PATH}/" | |
# sudo curl --location --no-buffer "${KUSTOMIZE_URL}" | tar -xvz -C "${BIN_PATH}/" | |
# sudo chmod +x ${BIN_PATH}/kustomize | |
# | |
- name: Code Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Verify Kustomize CLI Installation | |
run: | | |
which kustomize | |
kustomize version | |
- name: Validate Manifests | |
run: | | |
[ -d ./bootstrap/base ] && touch bootstrap/base/sealed-secrets-secret.yaml | |
./scripts/validate_manifests.sh | |
lint-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Validate YAML | |
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3 | |
with: | |
format: github | |
lint-bash: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
with: | |
version: v0.8.0 | |
severity: warning |