ci: Combine RedHat UBI with Fedora

This commit is contained in:
Richard Hansen 2024-05-19 18:30:17 -04:00
parent c0ba4b7d91
commit 08c914c660

View file

@ -47,23 +47,37 @@ jobs:
- name: distribution tarball is complete
run: ./.github/workflows/scripts/dist-tarball-check
test-fedora:
test-fedora-like:
strategy:
matrix:
image:
- fedora:39
- fedora:latest
- fedora:rawhide
# RedHat UBI is mostly garbage due to a profound lack of basic
# packages. It is tested anyway because it's the closest available
# approximation of RHEL. Some of the packages needed for some tests
# aren't available, so those tests will be skipped. I guess it's
# still better than nothing.
- registry.access.redhat.com/ubi7/ubi:latest
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v2
- name: install dependencies
# The --skip-broken argument works around RedHat UBI's missing packages.
# (They're only used for testing, so it's OK to not install them.)
run: |
dnf --refresh install -y \
inst="dnf --refresh --skip-broken install -y"
case '${{ matrix.image }}' in
# RedHat UBI 7 (RHEL 7) doesn't have dnf.
*ubi7*) inst="yum --skip-broken install -y";;
esac
${inst} \
automake \
findutils \
iproute \
make \
curl \
perl \
@ -74,6 +88,7 @@ jobs:
perl-Test-MockModule \
perl-Test-TCP \
perl-Test-Warnings \
perl-core \
net-tools \
;
- name: autogen
@ -84,29 +99,3 @@ jobs:
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 \
iproute \
;
- 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