From 9a1e9f813fdd4dcdae06a25e1fee142f6c0110f5 Mon Sep 17 00:00:00 2001 From: Roberto Polli Date: Thu, 24 Sep 2020 14:48:35 +0200 Subject: [PATCH] Lint with API Rules --- .github/workflows/oas-linter.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/oas-linter.yml diff --git a/.github/workflows/oas-linter.yml b/.github/workflows/oas-linter.yml new file mode 100644 index 0000000..e9dacce --- /dev/null +++ b/.github/workflows/oas-linter.yml @@ -0,0 +1,25 @@ +# This is a basic workflow to help you get started with Actions + +name: OpenAPI + +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: API Guidelines linter - beta + uses: ioggstream/api-oas-checker-action@v0.6.4-italia + with: + # The pattern describing the file paths to lint with Spectral + file_glob: api_spec_oa3.yml