-
Notifications
You must be signed in to change notification settings - Fork 155
57 lines (52 loc) · 1.59 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
47
48
49
50
51
52
53
54
55
56
57
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@v3
- 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@v3
- name: Validate YAML
uses: ibiqlik/action-yamllint@v3
with:
format: github
lint-bash:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
version: v0.8.0
severity: warning