Skip to content

Commit

Permalink
Test GitHub Action #29
Browse files Browse the repository at this point in the history
  • Loading branch information
sroertgen committed Mar 19, 2024
1 parent a89ef90 commit 464b355
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate TTL Files

on: [push]

jobs:
validate-ttl:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Find and process .ttl files
run: |
find . -type f -name '*.ttl' | while read file; do
# Adjust the file path to remove the './' part
adjusted_file_path=$(echo "$file" | sed 's|^./||')
echo "Processing $adjusted_file_path with Docker..."
docker run --rm -v "$file:/data/$adjusted_file_path" skohub/jena:4.6.1 "shacl validate --shapes https://raw.githubusercontent.com/skohub-io/shapes/main/skohub.shacl.ttl --data /data/$adjusted_file_path"
done

0 comments on commit 464b355

Please sign in to comment.