Skip to content

Commit

Permalink
Add basic github action to run the SPARQL checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed May 16, 2024
1 parent ecc1610 commit a421482
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check.yml
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

0 comments on commit a421482

Please sign in to comment.