Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build the Docker image
run: docker build -t librseq-ci-image tests/image/ubuntu/

- name: Run unit tests
run: |
docker run -v $(pwd):/librseq --rm librseq-ci-image ./tests/image/ubuntu/run.sh
8 changes: 8 additions & 0 deletions tests/image/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:24.04

ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get install -y autotools-dev autoconf build-essential \
automake pkg-config libtool libnuma-dev

WORKDIR /librseq
10 changes: 10 additions & 0 deletions tests/image/ubuntu/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -exo pipefail

./bootstrap
./configure
make
make check
make install
ldconfig