-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic github action to run the SPARQL checks
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Check SPARQL queries | ||
on: [push, pull_request, workflow_call, workflow_dispatch] | ||
|
||
jobs: | ||
|
||
check: | ||
name: Run SPARQL checks | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
|
||
- name: Install and run checks | ||
run: | | ||
sudo apt-get install -y libraptor2-0 raptor2-utils | ||
export JENA_VERSION=5.0.0 | ||
curl -LO https://dlcdn.apache.org/jena/binaries/apache-jena-$JENA_VERSION.zip | ||
unzip apache-jena-$JENA_VERSION.zip | ||
mv apache-jena-$JENA_VERSION ../ | ||
rm apache-jena-$JENA_VERSION.zip | ||
export JENA_HOME=$PWD/../apache-jena-$JENA_VERSION | ||
export PATH=$JENA_HOME/bin:$PATH | ||
./check.sh |