Skip to content

Commit 7975c8d

Browse files
Chore: Add github workflow to run linting on PRs
1 parent 7da37c2 commit 7975c8d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/lint-spec.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Run Spectral on Pull Requests
2+
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
build:
8+
name: Run Spectral
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Lint SDK specification
13+
uses: stoplightio/spectral-action@latest
14+
with:
15+
file_glob: 'sdk/*.yaml'

0 commit comments

Comments
 (0)