GitHub Actions CI (#430)

Add Github Actions CI config
This commit is contained in:
Artur Malimonov 2022-01-08 00:26:51 +00:00 committed by GitHub
parent 84ef4bef4b
commit b6ffe1a2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 3 deletions

21
.github/workflows/ci.yml vendored Normal file
View File

@ -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"

View File

@ -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