diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d556dd..3eb355e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + spec: + - spec:base + - spec:query + - spec:update + - spec:star + - spec:all + - spec:earl node-version: - 22.x steps: @@ -43,4 +50,4 @@ jobs: - uses: actions/checkout@v4 - run: npm ci - run: npm run build - - run: npm run spec + - run: npm run ${{ matrix.spec }} diff --git a/.gitignore b/.gitignore index 05e214c..cdfc722 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -node_modules *.log -lib/SparqlParser.js -.rdf-test-suite-cache +/.rdf-test-suite-cache +/node_modules +/lib/SparqlParser.js +/spec/earl-*.ttl diff --git a/package.json b/package.json index 038eb7b..ccba026 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,15 @@ "build": "jison lib/sparql.jison -p slr -m js -o lib/SparqlParser.js && echo 'module.exports=SparqlParser' >> lib/SparqlParser.js", "test": "mocha", "prepublishOnly": "npm run build", - "spec-base-query": "rdf-test-suite spec/parser.js http://w3c.github.io/rdf-tests/sparql/sparql11/manifest.ttl -s http://www.w3.org/TR/sparql11-query/ -c .rdf-test-suite-cache/", - "spec-base-update": "rdf-test-suite spec/parser.js http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl -s http://www.w3.org/TR/sparql11-update/ -c .rdf-test-suite-cache/", - "spec-star": "rdf-test-suite spec/parser.js https://w3c.github.io/rdf-star/tests/sparql/syntax/manifest.jsonld -i '{ \"sparqlStar\": true }' -c .rdf-test-suite-cache/", - "spec-earl-query": "npm run spec-base-query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl", - "spec-earl-update": "npm run spec-base-update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl", - "spec-earl-star": "npm run spec-star --silent -- -o earl -p spec/earl-meta.json > spec/earl-star.ttl", - "spec": "npm run spec-base-query && npm run spec-base-update && npm run spec-star" + "spec:base": "rdf-test-suite spec/parser.js http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl -c .rdf-test-suite-cache/", + "spec:query": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-query/", + "spec:update": "npm run spec:base -- -s http://www.w3.org/TR/sparql11-update/", + "spec:star": "rdf-test-suite spec/parser.js https://w3c.github.io/rdf-star/tests/sparql/syntax/manifest.jsonld -i '{ \"sparqlStar\": true }' -c .rdf-test-suite-cache/", + "spec:earl:query": "npm run spec:query --silent -- -o earl -p spec/earl-meta.json > spec/earl-query.ttl", + "spec:earl:update": "npm run spec:update --silent -- -o earl -p spec/earl-meta.json > spec/earl-update.ttl", + "spec:earl:star": "npm run spec:star --silent -- -o earl -p spec/earl-meta.json > spec/earl-star.ttl", + "spec:all": "npm run spec:base && npm run spec:query && npm run spec:update && npm run spec:star", + "spec:earl": "npm run spec:earl:query && npm run spec:earl:update && npm run spec:earl:star" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0"