2021-11-10 16:59:10 +00:00
|
|
|
name: Schema
|
2021-07-28 16:09:15 +00:00
|
|
|
on: # Trigger the workflow on push or pull request, but only for the master branch
|
|
|
|
push: {}
|
|
|
|
pull_request:
|
|
|
|
branches: [master, "release/*"]
|
|
|
|
|
|
|
|
jobs:
|
2021-11-10 16:59:10 +00:00
|
|
|
check:
|
2021-07-28 16:09:15 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install pkg
|
|
|
|
run: |
|
2022-02-05 14:52:44 +00:00
|
|
|
pip install "check-jsonschema>=0.10"
|
2021-07-28 16:09:15 +00:00
|
|
|
|
|
|
|
- name: GH Workflows
|
2022-06-30 13:02:57 +00:00
|
|
|
run: |
|
|
|
|
check-jsonschema .github/workflows/*.yml --builtin-schema "github-workflows"
|
|
|
|
check-jsonschema .github/actions/*/*.yml --builtin-schema "github-actions"
|
2021-07-28 16:09:15 +00:00
|
|
|
|
|
|
|
- name: Azure Pipelines
|
2022-05-14 01:59:03 +00:00
|
|
|
env:
|
|
|
|
SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.204.0/service-schema.json
|
2022-06-17 02:31:32 +00:00
|
|
|
run: check-jsonschema .azure/*.yml --schemafile "$SCHEMA_FILE"
|