Skip to content

Commit 1afb8fb

Browse files
authored
Add Redocly spec validation to GH workflows (#2045)
1 parent 5198fbb commit 1afb8fb

9 files changed

Lines changed: 501 additions & 24 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: spec-validation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 5.x
8+
pull_request:
9+
branches:
10+
- master
11+
- 5.x
12+
13+
jobs:
14+
spec-validation:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v7
18+
name: Checkout repository
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: '8.3'
24+
25+
- uses: ramsey/composer-install@v4
26+
with:
27+
dependency-versions: 'highest'
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '20'
33+
cache: 'npm'
34+
35+
- name: Install npm dependencies
36+
run: npm ci
37+
38+
- name: Validate specs
39+
run: composer redocly

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ docs/.vitepress/dist/
99
docs/node_modules/
1010
docs/package-lock.json
1111
node_modules/
12-
package-lock.json
1312
scratch/
1413
vendor/
1514
.idea/

0 commit comments

Comments
 (0)