From 0d56b29b039b2f047b5d430f9a89731b62471271 Mon Sep 17 00:00:00 2001 From: DmitryAnansky Date: Thu, 4 Jun 2026 16:50:21 +0300 Subject: [PATCH 1/5] chore: add validate github workflow --- .github/workflows/validate-cafe-api.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/validate-cafe-api.yml diff --git a/.github/workflows/validate-cafe-api.yml b/.github/workflows/validate-cafe-api.yml new file mode 100644 index 0000000..5e870fd --- /dev/null +++ b/.github/workflows/validate-cafe-api.yml @@ -0,0 +1,26 @@ +name: Validate Redocly Cafe API + +on: + push: + pull_request: + types: [opened, edited, reopened, synchronize] + +jobs: + lint: + name: Redocly lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install Redocly CLI + run: npm install --global @redocly/cli@latest + + - name: Lint API + run: redocly lint --format=github-actions From ea94db9228e8df92cc36e89312a58b482416d31b Mon Sep 17 00:00:00 2001 From: DmitryAnansky Date: Thu, 4 Jun 2026 17:08:50 +0300 Subject: [PATCH 2/5] chore: improve job --- .github/workflows/validate-cafe-api.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validate-cafe-api.yml b/.github/workflows/validate-cafe-api.yml index 5e870fd..9358bac 100644 --- a/.github/workflows/validate-cafe-api.yml +++ b/.github/workflows/validate-cafe-api.yml @@ -2,6 +2,8 @@ name: Validate Redocly Cafe API on: push: + branches: + - main pull_request: types: [opened, edited, reopened, synchronize] @@ -9,6 +11,9 @@ jobs: lint: name: Redocly lint runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - name: Checkout From 4b849b8bf7c09e113ff05018c2e268985f6bf1e5 Mon Sep 17 00:00:00 2001 From: DmitryAnansky Date: Thu, 4 Jun 2026 17:13:00 +0300 Subject: [PATCH 3/5] chore: update job --- .github/workflows/validate-cafe-api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-cafe-api.yml b/.github/workflows/validate-cafe-api.yml index 9358bac..943eefb 100644 --- a/.github/workflows/validate-cafe-api.yml +++ b/.github/workflows/validate-cafe-api.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 - name: Install Redocly CLI run: npm install --global @redocly/cli@latest From a04d76374c433c4efc688470807e74b638526012 Mon Sep 17 00:00:00 2001 From: DmitryAnansky Date: Thu, 4 Jun 2026 17:14:32 +0300 Subject: [PATCH 4/5] chore: changes after review --- .github/workflows/validate-cafe-api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-cafe-api.yml b/.github/workflows/validate-cafe-api.yml index 943eefb..337132b 100644 --- a/.github/workflows/validate-cafe-api.yml +++ b/.github/workflows/validate-cafe-api.yml @@ -5,7 +5,7 @@ on: branches: - main pull_request: - types: [opened, edited, reopened, synchronize] + types: [opened, reopened, synchronize] jobs: lint: From f22235c2c8978b173666c3b47b24b025d8762346 Mon Sep 17 00:00:00 2001 From: DmitryAnansky Date: Thu, 4 Jun 2026 17:28:37 +0300 Subject: [PATCH 5/5] chore: changes after review --- .github/workflows/validate-cafe-api.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/validate-cafe-api.yml b/.github/workflows/validate-cafe-api.yml index 337132b..20b2aa9 100644 --- a/.github/workflows/validate-cafe-api.yml +++ b/.github/workflows/validate-cafe-api.yml @@ -1,9 +1,6 @@ name: Validate Redocly Cafe API on: - push: - branches: - - main pull_request: types: [opened, reopened, synchronize] @@ -11,21 +8,15 @@ jobs: lint: name: Redocly lint runs-on: ubuntu-latest - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 - - name: Install Redocly CLI - run: npm install --global @redocly/cli@latest - - name: Lint API - run: redocly lint --format=github-actions + run: npx @redocly/cli@latest lint --format=github-actions