Skip to content

Commit

Permalink
CI: use schema (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Sep 12, 2022
1 parent c97c59d commit 91cd625
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/ci_schema.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
name: CI action schema
on: # Trigger the workflow on push or pull request, but only for the master branch
push: {}
name: Check Schema

on:
push:
branches: {}
pull_request:
branches: [master, "release/*"]

jobs:
validate-schema:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install pkg
run: |
pip install "check-jsonschema>=0.10"
- name: GH Workflows
run: |
check-jsonschema .github/workflows/*.yml --builtin-schema "github-workflows"
check-jsonschema .github/actions/*/*.yml --builtin-schema "github-actions"
- name: Azure Pipelines
env:
SCHEMA_FILE: https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/v1.204.0/service-schema.json
run: check-jsonschema .azure/*.yml --schemafile "$SCHEMA_FILE"
check:
uses: Lightning-AI/devtools/.github/workflows/[email protected]

0 comments on commit 91cd625

Please sign in to comment.