Skip to content

Commit

Permalink
Update spec commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Aug 10, 2024
1 parent 4007115 commit 2f4a8cb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
matrix:
node-version:
- 22.x
spec:
- spec:base
- spec:query
- spec:update
- spec:star
- spec:all
- spec:earl
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand All @@ -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 }}
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2f4a8cb

Please sign in to comment.