Skip to content

Commit

Permalink
Add GitHub Action to check Avram schemas (#410)
Browse files Browse the repository at this point in the history
* Add GitHub Action to check Avram schemas

* Fix PICA Avram schema files
  • Loading branch information
nichtich authored Jan 20, 2024
1 parent 8d07856 commit 4b68a95
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 179 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/avram.yml
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
Loading

0 comments on commit 4b68a95

Please sign in to comment.