diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7adfba9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: + Tomb CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: | + cp -v extras/test/Dockerfile . + docker build -t dyne/tomb . + - name: Disable swap + run: sudo swapoff -a + - name: Run main test suite + run: docker run -t --privileged dyne/tomb /bin/bash -c "make test" + - name: Run Tomb-kdb tests + run: docker run -t --privileged dyne/tomb /bin/bash -c "make -C extras/kdf-keys test" \ No newline at end of file diff --git a/extras/test/Dockerfile b/extras/test/Dockerfile index c35d110..e489bc9 100644 --- a/extras/test/Dockerfile +++ b/extras/test/Dockerfile @@ -8,9 +8,6 @@ RUN pip3 install setuptools wheel COPY . /Tomb/ -WORKDIR /Tomb/extras -RUN ./install_sphinx.sh - COPY extras/test/doas.conf /etc/doas.conf RUN chmod 400 /etc/doas.conf