Skip to content

Commit

Permalink
Debugging unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sahalali committed Sep 30, 2024
1 parent 985c9ba commit 41253fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/unit-test-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@ jobs:

- name: Import repository configuration
run: |
curl 'http://localhost:7200/rest/repositories' \
curl 'http://127.0.0.1:7200/rest/repositories' \
--header 'Content-Type: multipart/form-data' \
--form 'config=@"./test/config.ttl"'
- name: Import repository data
run: |
curl 'http://localhost:7200/repositories/artsdata/statements' \
curl 'http://127.0.0.1:7200/repositories/artsdata/statements' \
--header 'Content-Type: application/n-quads' \
--data-binary '@./test/statements.nq'
- name: Create index
run: |
for file in ./src/sparql/index/*.sparql; do
echo "Running query from file: $file"
curl -X POST -H "Content-Type: text/plain" -d @"$file" "http://localhost:7200/rest/connectors/check"
curl -X POST -H "Content-Type: text/plain" -d @"$file" "http://127.0.0.1:7200/rest/connectors/check"
done
- name: Update env to point to local graphdb
run: |
sed -i 's|^ARTSDATA_ENDPOINT=.*|ARTSDATA_ENDPOINT="http://localhost:7200/"|' .env
sed -i 's|^ARTSDATA_ENDPOINT=.*|ARTSDATA_ENDPOINT="http://127.0.0.1:7200/"|' .env
- name: Setup Node
uses: actions/setup-node@v1
Expand Down

0 comments on commit 41253fd

Please sign in to comment.