Skip to content

Commit

Permalink
feat: Run boon validation tests on all JSON files
Browse files Browse the repository at this point in the history
Check them against obv3
  • Loading branch information
berkes committed Sep 12, 2024
1 parent 4916591 commit 93fb0c4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
branches: [ "main" ]

jobs:
verify-json-validation:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run Boon Command
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/${{ github.repository_owner }}/boon:latest
options: --rm
run: boon --assert-content schemas/ob_v3p0_achievementcredential_schema.json *.json
2 changes: 1 addition & 1 deletion extracurriculair_minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type": [
"Profile"
],
"name": "Naboo Theed University",
"name": "Naboo Theed University"
},
"validFrom": "2014-06-01T00:00:00Z",
"name": "Example Extra-Curricular Achievement",
Expand Down

0 comments on commit 93fb0c4

Please sign in to comment.