-
Notifications
You must be signed in to change notification settings - Fork 52
35 lines (34 loc) · 1.33 KB
/
intg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Integration tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
fedora-build:
runs-on: ubuntu-latest
env:
IMAGE: fedora-img
CONTAINER: fedora-container
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build the Docker image
run: sudo podman build . --file Dockerfile.fedora --tag ${IMAGE}
- name: Run the container
run: sudo podman run --privileged --security-opt seccomp=unconfined --detach -p 80:80 --name=${CONTAINER} ${IMAGE}
- name: Check the container is up
run: sudo podman ps
- name: Setup ./configure
run: sudo podman exec ${CONTAINER} autoreconf -if
- name: Configure
run: sudo podman exec ${CONTAINER} ./configure --disable-dependency-tracking --prefix=/usr --sysconfdir=/etc --localstatedir=/var
- name: Make dist
run: sudo podman exec ${CONTAINER} make dist
- name: Build and Install the RPM
run: sudo podman exec ${CONTAINER} sh -c 'rpmbuild -tb *tar.gz && dnf install -y ~/rpmbuild/RPMS/x86_64/tlog*'
- name: Integration tests setup
run: sudo podman exec -e CONTAINER_ENV=true ${CONTAINER} ./src/tlitest/tlitest-setup
- name: Run tests
# Hostnames test won't work in a container
run: sudo podman exec -t ${CONTAINER} ./src/tlitest/tlitest-run -k "not hostnames"