Skip to content

Commit 104055e

Browse files
committed
Add linter for scenario files
This adds a linter for JSON scenario files which will validate the JSON files in the scenarios directory against the TypeScript types. It will convert the TypeScript types to JSON schema to simplify this process. Unfortunately, this will not currently allow adding scenarios with failing requests since the types do not allow this. Rather than removing this validation, we should fix the types. This can be done in a follow-up PR.
1 parent 4e5abee commit 104055e

File tree

4 files changed

+1010
-105
lines changed

4 files changed

+1010
-105
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ jobs:
103103
run: |
104104
npm run lint
105105
106+
- name: Lint scenarios
107+
working-directory: extensions/ql-vscode
108+
run: |
109+
npm run lint:scenarios
110+
106111
- name: Run unit tests (Linux)
107112
working-directory: extensions/ql-vscode
108113
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)