From 390927973d2eab72d4daac10dbb6cdfdbd040aea Mon Sep 17 00:00:00 2001 From: Jakob Voss Date: Sat, 20 Jan 2024 19:56:25 +0100 Subject: [PATCH] Add GitHub Action to check Avram schemas --- .github/workflows/avram.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/avram.yml diff --git a/.github/workflows/avram.yml b/.github/workflows/avram.yml new file mode 100644 index 00000000..c47789e6 --- /dev/null +++ b/.github/workflows/avram.yml @@ -0,0 +1,21 @@ +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 avram@0.6.6 # checking Avram 0.9.6 + - run: | + avram -s src/main/resources/unimarc/avram-unimarc.json + avram -s src/test/resources/unimarc/avram-unimarc.json + avram -s src/main/resources/pica/avram-k10plus-title.json