mirror of
https://github.com/CiscoDevNet/cml-community.git
synced 2025-10-22 23:32:01 +00:00
26 lines
562 B
YAML
26 lines
562 B
YAML
name: Node definition schema check
|
|
|
|
on:
|
|
push:
|
|
types: [synchronize]
|
|
paths:
|
|
- 'node-definitions/**/*.yaml'
|
|
pull_request:
|
|
types: [synchronize]
|
|
paths:
|
|
- 'node-definitions/**/*.yaml'
|
|
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Validations of node definitions
|
|
uses: thiagodnf/yaml-schema-checker@v0.0.8
|
|
with:
|
|
jsonSchemaFile: validation_schemas/node_definition.json
|
|
yamlFiles: node-definitions/**/*.yaml
|