From 2dd9544c24079d03799f9993070bd9c85e0fbabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 28 Sep 2023 13:44:15 +0200 Subject: [PATCH] Add all scripts to CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: KΓ©vin Commaille --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4fc6a960..ba6d040a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: run: | npx @redocly/cli@latest lint data/api/*/*.yaml - check-examples: + check-event-examples: name: "πŸ”Ž Check Event schema examples" runs-on: ubuntu-latest steps: @@ -45,7 +45,45 @@ jobs: - name: "πŸ”Ž Run validator" run: | 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: name: "βš™οΈ Calculate baseURL for later jobs" runs-on: ubuntu-latest