fixed static logos #226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TestExamples | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
WORKING_DIR: ./examples/ | |
APP_PORT: 5001 | |
jobs: | |
TestExamples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: run app | |
run: | | |
docker-compose -f docker-compose.develop.yml up -d | |
#docker-compose up -d | |
sleep 10s | |
docker ps -a | |
- name: create csvw json-ld | |
working-directory: ${{env.WORKING_DIR}} | |
run: | | |
docker logs csvtocsvw | |
for file in *.csv | |
do | |
echo "$file" | |
RESULT=$(curl -X POST "http://localhost:${{env.APP_PORT}}/api/annotate" -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 | |
jq . <<< "$FILEDATA" > $FILENAME | |
done | |
docker logs csvtocsvw | |
- name: delete ttl files | |
working-directory: ${{env.WORKING_DIR}} | |
run: rm *.ttl | |
continue-on-error: true | |
- name: create csvw rdf | |
working-directory: ${{env.WORKING_DIR}} | |
run: | | |
for file in *-metadata.json | |
do | |
echo "$file" | |
curl -X POST "http://localhost:${{env.APP_PORT}}/api/rdf" -H "accept: application/json" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"metadata_url\":\"https://github.com/Mat-O-Lab/CSVToCSVW/raw/main/examples/$file\", \"format\":\"turtle\"}" -O -J | |
done | |
- name: Commit files # commit the output folder | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'updated example output' | |
add: '*.* --force' | |
cwd: './examples/' |