-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b4033d
commit 7f69b00
Showing
2 changed files
with
46 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,26 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build Docker image | ||
run: docker build -t eye-shacl-project . | ||
|
||
- name: Run tests in Docker container | ||
run: docker run --rm -w /workspace/test eye-shacl-project ./test.sh |
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,20 @@ | ||
# Use the EYE reasoner Docker image as the base image | ||
FROM eyereasoner/eye:10.23.2 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /workspace | ||
|
||
# Install curl | ||
RUN apt-get update && apt-get install -y curl | ||
|
||
# Copy the entire project into the container | ||
COPY . /workspace | ||
|
||
# Make the scripts executable | ||
RUN chmod +x build.sh test/test.sh test/testFile.sh dist/eye-shacl-compile.sh dist/eye-shacl-validate.sh dist/eye-shacl.sh | ||
|
||
# Run the build script to prepare the necessary files | ||
RUN ./build.sh | ||
|
||
# Set the entrypoint to the bash shell | ||
ENTRYPOINT ["/bin/bash"] |