build: add k8s validation workflow #5
Workflow file for this run
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: Kubernetes Validation | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
TUTOR_ROOT: ./.github/testing | |
jobs: | |
validation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install python reqs | |
run: | | |
pip install -r ./.github/testing/requirements.txt | |
pip install -e . | |
tutor plugins list | |
pip show setuptools | |
- name: Tutor config save | |
run: tutor config save | |
- name: Run Kubernetes tools | |
uses: alexellis/arkade-get@master | |
with: | |
kubectl: latest | |
kustomize: latest | |
helm: latest | |
kubeconform: latest | |
- name: Check k8s manifests | |
run: | | |
kustomize build $TUTOR_ROOT/env | kubeconform -strict -ignore-missing-schemas -kubernetes-version latest |