From 6a824630fcf6469d64f0053ffd5f0c92ec0be7d8 Mon Sep 17 00:00:00 2001 From: Federico Cucinella <10742159+QcFe@users.noreply.github.com> Date: Tue, 14 Jan 2025 13:35:47 +0100 Subject: [PATCH 1/2] Create openapi checks --- .github/workflows/checks.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..d4dd3da --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,24 @@ +name: Checks +on: + push: + branches: + - master + pull_request: + types: + - opened + - reopened + - synchronize + +jobs: + checks: + runs-on: ubuntu-latest + name: OpenAPI definition + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run check + uses: fluximus-prime/redocly-cli-github-action@v1 + with: + args: lint openapi.yaml From 6e64b30dafe75f0de378c2bcc3da5057649c30e7 Mon Sep 17 00:00:00 2001 From: Federico Cucinella <10742159+QcFe@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:51:21 +0100 Subject: [PATCH 2/2] use github actions output format --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d4dd3da..3dd5ec3 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,4 +21,4 @@ jobs: - name: Run check uses: fluximus-prime/redocly-cli-github-action@v1 with: - args: lint openapi.yaml + args: lint openapi.yaml --format=github-actions