mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-15 23:54:10 +02:00
Add all scripts to CI
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
dd566d0dcd
commit
2dd9544c24
42
.github/workflows/main.yml
vendored
42
.github/workflows/main.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npx @redocly/cli@latest lint data/api/*/*.yaml
|
npx @redocly/cli@latest lint data/api/*/*.yaml
|
||||||
|
|
||||||
check-examples:
|
check-event-examples:
|
||||||
name: "🔎 Check Event schema examples"
|
name: "🔎 Check Event schema examples"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -45,7 +45,45 @@ jobs:
|
||||||
- name: "🔎 Run validator"
|
- name: "🔎 Run validator"
|
||||||
run: |
|
run: |
|
||||||
python scripts/check-event-schema-examples.py
|
python scripts/check-event-schema-examples.py
|
||||||
|
|
||||||
|
check-openapi-examples:
|
||||||
|
name: "🔎 Check OpenAPI definitions examples"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "📥 Source checkout"
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: "➕ Setup Python"
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: scripts/requirements.txt
|
||||||
|
- name: "➕ Install dependencies"
|
||||||
|
run: |
|
||||||
|
pip install -r scripts/requirements.txt
|
||||||
|
- name: "🔎 Run validator"
|
||||||
|
run: |
|
||||||
|
python scripts/check-openapi-sources.py
|
||||||
|
|
||||||
|
check-schemas-examples:
|
||||||
|
name: "🔎 Check JSON Schemas inline examples"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "📥 Source checkout"
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: "➕ Setup Python"
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: scripts/requirements.txt
|
||||||
|
- name: "➕ Install dependencies"
|
||||||
|
run: |
|
||||||
|
pip install -r scripts/requirements.txt
|
||||||
|
- name: "🔎 Run validator"
|
||||||
|
run: |
|
||||||
|
python scripts/check-json-schemas.py
|
||||||
|
|
||||||
calculate-baseurl:
|
calculate-baseurl:
|
||||||
name: "⚙️ Calculate baseURL for later jobs"
|
name: "⚙️ Calculate baseURL for later jobs"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue