Skip to content

Commit

Permalink
Update TestExamples.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThHanke authored Jan 18, 2023
1 parent 90b64ab commit 43e64eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/TestExamples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
WORKING_DIR: ./examples/
APP_PORT: 5001

jobs:
TestExamples:
Expand All @@ -28,7 +29,7 @@ jobs:
for file in *.csv
do
echo "$file"
RESULT=$(curl -X POST "http://localhost:5001/api" -H "accept: application/json" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"data_url\":\"https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/$file\"}")
RESULT=$(curl -X POST "http://localhost:${{env.APP_PORT}}/api" -H "accept: application/json" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"data_url\":\"https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/$file\"}")
FILEDATA=$(echo $RESULT | jq -r '.filedata')
FILENAME=$(echo $RESULT | jq -r '.filename')
echo $FILENAME
Expand Down

0 comments on commit 43e64eb

Please sign in to comment.