Skip to content

Commit

Permalink
Add result validation back to Docker scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
surilindur committed Mar 19, 2024
1 parent d098ef6 commit 3baa51c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,15 @@ jobs:
stain/jena-fuseki@sha256:4d84eb09dc69603cab990a25a5ad683cec648159f39ccf5dbffba312e7d7666a
docker ps
- name: insert data
run: node bin/fetch-sparql-endpoint.js http://127.0.0.1:8080/mydataset/update --query 'insert data { <ex:s> <ex:p> <ex:o> }'
run: |
node bin/fetch-sparql-endpoint.js http://127.0.0.1:8080/mydataset/update \
--query 'insert data { <ex:s> <ex:p> <ex:o> }' \
| grep 'OK' &> /dev/null && echo "OK" || (echo "Update failed" && exit 1)
- name: test data existence
run: node bin/fetch-sparql-endpoint.js http://127.0.0.1:8080/mydataset/sparql --query 'select * where { ?s ?p ?o }'
run: |
node bin/fetch-sparql-endpoint.js http://127.0.0.1:8080/mydataset/sparql \
--query 'select * where { ?s ?p ?o }' \
| grep '{"s":"ex:s","p":"ex:p","o":"ex:o"}' &> /dev/null && echo "OK" || (echo "Query failed" && exit 1)
- run: docker stop endpoint
if: always()

Expand Down

0 comments on commit 3baa51c

Please sign in to comment.