Skip to content

Update Setup-OS.md

Update Setup-OS.md #12

Workflow file for this run

############################
# @author Elias De Hondt #
# @see https://eliasdh.com #
# @since 24/11/2024 #
############################
name: Validate
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-yaml:
name: Lint YAML Files
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
# Step 1
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Step 2
- name: Lint YAML Files
uses: super-linter/super-linter@v7.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_YAML: true
VALIDATE_YAML_FILES: "supercluster/**/*"
validate-yaml:
name: Validate Kubernetes Manifests
runs-on: ubuntu-latest
needs: lint-yaml
steps:
# Step 1
- name: Checkout repository
uses: actions/checkout@v2
# Step 2
- name: Install kubectl
uses: azure/setup-kubectl@v3
with:
version: 'v1.28.0'
# Step 3
- name: Validate Kubernetes YAML
run: |
# Test all YAML files under 'Cluster01/' for syntax errors
for file in $(find cluster01 -name '*.yaml'); do
echo "Validating $file"
kubectl apply --dry-run=client -f $file
done