-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (43 loc) · 1.23 KB
/
validate-manifests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Validate Manifests
on: # yamllint disable-line rule:truthy
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
lint-kustomize:
runs-on: ubuntu-latest
env:
KUSTOMIZE_VERSION: 3.9.4
KUSTOMIZE_URL: https://github.com/kubernetes-sigs/kustomize/releases/download/v${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64
BIN_PATH: /usr/bin
steps:
- name: Install Kustomize
run: |
sudo curl "${KUSTOMIZE_URL}" -L -o ${BIN_PATH}/kustomize
sudo chmod +x ${BIN_PATH}/kustomize
- name: Code Checkout
uses: actions/checkout@v4
- 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@v4
- name: Validate YAML
uses: ibiqlik/action-yamllint@v3
lint-bash:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
version: v0.8.0
severity: warning