Replace remaining CircleCI jobs with GHA (#3505)

Apparently the `build-docs` step is already happening, so we just need to port
the schema and example validation jobs.
This commit is contained in:
Richard van der Hoff 2021-11-17 21:01:53 +00:00 committed by GitHub
parent 0982d5c55f
commit 0d8f466f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 73 deletions

View file

@ -9,6 +9,36 @@ on:
workflow_dispatch:
jobs:
validate-openapi:
name: "🔎 Validate OpenAPI specifications"
runs-on: ubuntu-latest
steps:
- name: "📥 Source checkout"
uses: actions/checkout@v2
- name: " Setup Node"
uses: actions/setup-node@v2
with:
node-version: '14'
- name: "⚙️ npm"
working-directory: "./scripts"
run: |
npm install
- name: "🔎 Run validator"
working-directory: "./scripts"
run: |
node validator.js -s "../data/api/client-server"
check-examples:
name: "🔎 Check Event schema examples"
runs-on: ubuntu-latest
container: uhoreg/matrix-doc-build
steps:
- name: "📥 Source checkout"
uses: actions/checkout@v2
- name: "🔎 Run validator"
run: |
/env/bin/python scripts/check-event-schema-examples.py
build-openapi:
name: "🐍 Build OpenAPI definitions"
runs-on: ubuntu-latest