Skip to content

Commit b79ec7d

Browse files
mliptak0claude
andcommitted
HYPERFLEET-1024 - chore: switch spectral lint to stoplightio/spectral-action
Replace manual npx spectral invocation with stoplightio/spectral-action@v0.8.13. The action bundles its own Spectral binary, avoiding Node.js version compatibility issues with npx. Remove @stoplight/spectral-cli devDependency as it is no longer needed. Update TypeSpec compiler to @1.11 in both workflows. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 36402d2 commit b79ec7d

4 files changed

Lines changed: 126 additions & 1579 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: npm ci
2626

2727
- name: Install TypeSpec compiler
28-
run: npm install -g @typespec/compiler@1.6
28+
run: npm install -g @typespec/compiler@1.11
2929

3030
- name: Build all schemas
3131
run: |
@@ -43,7 +43,9 @@ jobs:
4343
fi
4444
4545
- name: Lint OpenAPI schemas
46-
run: npx spectral lint schemas/core/openapi.yaml schemas/gcp/openapi.yaml
46+
uses: stoplightio/spectral-action@v0.8.13
47+
with:
48+
file_glob: schemas/**/openapi.yaml
4749

4850
- name: Check version bump
4951
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: npm ci
2727

2828
- name: Install TypeSpec compiler
29-
run: npm install -g @typespec/compiler@1.6
29+
run: npm install -g @typespec/compiler@1.11
3030

3131
- name: Extract version
3232
id: version

0 commit comments

Comments
 (0)