151 lines
4.1 KiB
YAML
151 lines
4.1 KiB
YAML
---
|
|
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test-debian-like:
|
|
strategy:
|
|
matrix:
|
|
image:
|
|
- ubuntu:latest
|
|
- ubuntu:16.04
|
|
- debian:testing
|
|
- debian:stable
|
|
- debian:oldstable
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ${{ matrix.image }}
|
|
steps:
|
|
- name: install dependencies
|
|
run: |
|
|
apt-get update &&
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
automake \
|
|
ca-certificates \
|
|
git \
|
|
libhttp-daemon-perl \
|
|
libhttp-daemon-ssl-perl \
|
|
libio-socket-inet6-perl \
|
|
libio-socket-ip-perl \
|
|
libplack-perl \
|
|
libtest-tcp-perl \
|
|
libtest-warnings-perl \
|
|
liburi-perl \
|
|
make \
|
|
;
|
|
- uses: actions/checkout@v2
|
|
- name: autogen
|
|
run: ./autogen
|
|
- name: configure
|
|
run: ./configure
|
|
- name: check
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always check
|
|
- name: distcheck
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always distcheck
|
|
- name: distribution tarball is complete
|
|
run: ./.github/workflows/scripts/dist-tarball-check
|
|
|
|
test-centos6:
|
|
runs-on: ubuntu-latest
|
|
container: centos:6
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: install dependencies
|
|
run: |
|
|
yum install -y \
|
|
automake \
|
|
perl-IO-Socket-INET6 \
|
|
perl-core \
|
|
perl-libwww-perl \
|
|
;
|
|
- name: autogen
|
|
run: ./autogen
|
|
- name: configure
|
|
run: ./configure
|
|
- name: check
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always check
|
|
- name: distcheck
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always distcheck
|
|
|
|
test-centos8:
|
|
runs-on: ubuntu-latest
|
|
container: centos:8
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install dependencies
|
|
run: |
|
|
dnf --refresh --enablerepo=PowerTools install -y \
|
|
automake \
|
|
make \
|
|
perl-HTTP-Daemon \
|
|
perl-IO-Socket-INET6 \
|
|
perl-Test-Warnings \
|
|
perl-core \
|
|
;
|
|
- name: autogen
|
|
run: ./autogen
|
|
- name: configure
|
|
run: ./configure
|
|
- name: check
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always check
|
|
- name: distcheck
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always distcheck
|
|
|
|
test-fedora:
|
|
runs-on: ubuntu-latest
|
|
container: fedora
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install dependencies
|
|
run: |
|
|
dnf --refresh install -y \
|
|
automake \
|
|
findutils \
|
|
make \
|
|
perl \
|
|
perl-HTTP-Daemon \
|
|
perl-HTTP-Daemon-SSL \
|
|
perl-IO-Socket-INET6 \
|
|
perl-Plack \
|
|
perl-Test-TCP \
|
|
perl-Test-Warnings \
|
|
;
|
|
- name: autogen
|
|
run: ./autogen
|
|
- name: configure
|
|
run: ./configure
|
|
- name: check
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always check
|
|
- name: distcheck
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always distcheck
|
|
|
|
test-redhat-ubi7:
|
|
runs-on: ubuntu-latest
|
|
# we use redhats univeral base image which is not available on docker hub
|
|
# https://catalog.redhat.com/software/containers/ubi7/ubi/5c3592dcd70cc534b3a37814
|
|
container: registry.access.redhat.com/ubi7/ubi
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install dependencies
|
|
run: |
|
|
yum install -y \
|
|
automake \
|
|
make \
|
|
perl-HTTP-Daemon \
|
|
perl-IO-Socket-INET6 \
|
|
perl-core \
|
|
;
|
|
- name: autogen
|
|
run: ./autogen
|
|
- name: configure
|
|
run: ./configure
|
|
- name: check
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always check
|
|
- name: distcheck
|
|
run: make VERBOSE=1 AM_COLOR_TESTS=always distcheck
|