Skip to content

A Github action for validating YAML based on VS Code settings

Notifications You must be signed in to change notification settings

red-digit7/validate-yaml-schema

 
 

Repository files navigation

Validate YAML Schema

This action validates YAML files using the yaml.schemas settings for the VS Code YAML Extension

All you need is a .vscode/settings.json document at the root of the repository that contains the yaml.schemas setting

Outputs

invalidFiles

A comma separated list of files that failed the schema validation.

Schema validation fails if any results are returned from the YAML Language Server

Example usage

You'll need to precede the action with actions/checkout@v2 as this action will read files from the GITHUB_WORKSPACE directory

steps:
  - uses: actions/checkout@v2
  - uses: nwisbeta/validate-yaml-schema@v1.0

Thanks

This action has been made by 're-mixing' logic from these repos:

About

A Github action for validating YAML based on VS Code settings

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 94.8%
  • JavaScript 5.2%