-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action to check Avram schemas (#410)
* Add GitHub Action to check Avram schemas * Fix PICA Avram schema files
- Loading branch information
Showing
4 changed files
with
76 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Validate Avram Schemas | ||
|
||
on: | ||
push: | ||
branches: [ main, develop ] | ||
pull_request: | ||
branches: [ main, develop ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: npm install -g [email protected] ajv ajv-formats # checking Avram 0.9.6 | ||
- name: Validate Avram Schema files | ||
run: | | ||
avram -s src/main/resources/pica-schema.json | ||
avram -s src/main/resources/pica/avram-k10plus-title.json | ||
avram -s src/main/resources/unimarc/avram-unimarc.json | ||
avram -s src/test/resources/pica/schema/pica-schema-extra.json | ||
avram -s src/test/resources/pica/schema/pica-schema.json | ||
avram -s src/test/resources/unimarc/avram-unimarc.json |
Oops, something went wrong.