initial commit #17
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: containerlab tests | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
ajv: | |
name: test lab files are valid | |
runs-on: linux | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: install ajv-cli | |
run: npm install -g ajv-cli | |
- name: fetch clab.schema.json | |
run: curl https://raw.githubusercontent.com/srl-labs/containerlab/main/schemas/clab.schema.json -o clab.schema.json | |
- name: test files are valid against schema | |
run: ajv -s clab.schema.json -d "lab_*/*.clab.yml" --strict=false | |