diff --git a/.github/workflows/v2.yml b/.github/workflows/v2.yml new file mode 100644 index 0000000..9e53db2 --- /dev/null +++ b/.github/workflows/v2.yml @@ -0,0 +1,18 @@ +name: Validator2 + +on: + push: + pull_request: + branches: + - master + - develop +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Data validator + uses: datagov-cz/data-validator/github@master + with: + configuration: file://./.github/workflows/validate-syntax.ttl diff --git a/.github/workflows/validate-syntax.ttl b/.github/workflows/validate-syntax.ttl new file mode 100644 index 0000000..77fb144 --- /dev/null +++ b/.github/workflows/validate-syntax.ttl @@ -0,0 +1,30 @@ +@prefix dash: . +@prefix rdf: . +@prefix rdfs: . +@prefix schema: . +@prefix sh: . +@prefix xsd: . + +# Configuration for syntax validation. + a ; + [ + ".*.jsonld" ; + + [ a ; ] + ], [ + ".*.json", ".*.jsonld" ; + + [ a ; ] + ], [ + ".*.ttl", ".*.trig", ".*.nq", ".*.nt", ".*.rdf" ; + + [ a ; ] + ], [ + ".*.xml" ; + + [ a ; ] + ] ; + true ; + # Can be changed from the command line. + "./" ; +.