-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a basic github action and Taskfile to verify that the rdf files a…
…re parsable
- Loading branch information
1 parent
c17be27
commit 43a5399
Showing
2 changed files
with
60 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,17 @@ | ||
name: Check Serialization | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: arduino/setup-task@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check out Vocabulary Repository 📄 | ||
uses: actions/checkout@v4 | ||
- name: Run CI Tasks ⚙️ | ||
run: task ci |
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,43 @@ | ||
version: '3' | ||
|
||
vars: | ||
UID: | ||
sh: id -u | ||
GID: | ||
sh: id -g | ||
SHELL_PWD: | ||
sh: pwd | ||
|
||
DOCKER_PWD: /data | ||
DOCKER_DIRS: -v "{{.SHELL_PWD}}:{{.DOCKER_PWD}}" -w {{.DOCKER_PWD}} | ||
DOCKER_PARAMS_DEFAULT: -u {{.UID}}:{{.GID}} --rm | ||
DOCKER_PARAMS: '{{.DOCKER_PARAMS | default .DOCKER_PARAMS_DEFAULT }}' | ||
|
||
RAPPER_IMAGE: docker.io/pheyvaer/raptor | ||
RAPPER_DOCKER: docker run {{.DOCKER_PARAMS}} {{.DOCKER_DIRS}} {{.RAPPER_IMAGE}} | ||
RAPPER_CMD: '{{.RAPPER_DOCKER}}' | ||
|
||
|
||
tasks: | ||
|
||
default: | ||
summary: List all tasks | ||
silent: true | ||
cmds: | ||
- task --list | ||
|
||
ci: | ||
desc: Build tasks for the CI | ||
cmds: | ||
- task: check | ||
|
||
check: | ||
desc: Test that the serialization is still valid | ||
cmds: | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./elementSet/dnb.rdf" | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./elementSet/agrelon.rdf" | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./valueVocabulary/description-level.rdf" | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./valueVocabulary/gender.rdf" | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./valueVocabulary/gnd-sc.rdf" | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./valueVocabulary/type-of-coordinates.rdf" | ||
- "{{ .RAPPER_CMD }} -i rdfxml -c ./valueVocabulary/geographic-area-code.rdf" |