From 6ee1429434ddfe2e84a0141192ded044b2c6d5ae Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 24 May 2024 15:45:38 -0400 Subject: [PATCH] actions: confirm swagger.json is updated --- .github/workflows/swagger.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/swagger.yml diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml new file mode 100644 index 0000000..e810a45 --- /dev/null +++ b/.github/workflows/swagger.yml @@ -0,0 +1,18 @@ +name: Swagger +on: [push, pull_request] +jobs: + swagger: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + - name: Validate swagger.json + run: | + diff -u swagger.json <(swagger)