ci(swagger): add OpenAPI validation job to CI

- Install @stoplight/spectral-cli as dev dependency
- Add "Swagger Validation & Coverage" job to .gitea/workflows/ci.yml
- Run spectral lint on server/openapi.yaml
- Run npm test to execute coverage tests
- Fail CI if spec is invalid or coverage is incomplete
- Runs on every push/PR alongside existing jobs
This commit is contained in:
2026-05-21 12:39:13 +01:00
parent 6980558ca9
commit 7dadb849f6
3 changed files with 2698 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@
"yamljs": "^0.3.0"
},
"devDependencies": {
"@stoplight/spectral-cli": "^6.16.0",
"@vitest/coverage-v8": "^4.1.6",
"concurrently": "^7.6.0",
"nock": "^14.0.15",