Skip to content

Commit

Permalink
ci: run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed Oct 3, 2024
1 parent 0b4033d commit 7f69b00
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
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
20 changes: 20 additions & 0 deletions Dockerfile
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"]

0 comments on commit 7f69b00

Please sign in to comment.