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: Check Catalog Manifests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-yaml: | |
name: Lint YAML | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- uses: docker://cytopia/yamllint:latest | |
with: | |
args: -d .yamllint . | |
validate-yaml: | |
name: Validate YAML against JSON Schema | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- uses: docker://andiikaa/jsonschema:latest | |
with: | |
entrypoint: /bin/sh | |
args: -c 'for file in catalog/*/manifest.yaml; do jv schema.json "$file" || exit 1; done' |