Skip to content

Commit

Permalink
Add examples for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Mar 8, 2024
1 parent c42457d commit 0f1aafc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:
validate:
name: Build Package
name: Validate Schema
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
Expand All @@ -28,3 +28,20 @@ jobs:
run: pip install -r scripts/requirements.txt
- name: Validate schema
run: ./scripts/validate_schema.py codetf.schema.json
test-examples:
name: Test CodeTF Examples
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: pip install check-jsonschema
- name: Validate PyGoat example
run: check-jsonschema --schemafile codetf.schema.json examples/pygoat.codetf.json
- name: Validate WebGoat example
run: check-jsonschema --schemafile codetf.schema.json examples/pygoat.codetf.json
1 change: 1 addition & 0 deletions examples/pygoat.codetf.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/webgoat.codetf.json

Large diffs are not rendered by default.

0 comments on commit 0f1aafc

Please sign in to comment.