CI: Enable CentOS 9 stream integration test

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2022-02-04 20:36:20 +01:00 committed by Till Maas
parent 2ebc8b5022
commit 0e3d480de7
3 changed files with 19 additions and 0 deletions

14
.github/Dockerfile.c9s-network-role vendored Normal file
View file

@ -0,0 +1,14 @@
FROM quay.io/centos/centos:stream9-development
RUN dnf -y install dnf-plugins-core && \
dnf config-manager --set-enabled crb && \
dnf -y upgrade && \
dnf -y install NetworkManager NetworkManager-wifi \
procps-ng iproute openssh-server openssh-clients systemd-udev \
dnsmasq wpa_supplicant openssl ethtool iputils python3-gobject-base \
python3-pip python3-jmespath && \
pip3 install ansible==2.9.*
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]

4
.github/run_test.sh vendored
View file

@ -5,6 +5,7 @@ set -euo pipefail
TEST_SOURCE_DIR="/network-role"
C8S_CONTAINER_IMAGE="quay.io/linux-system-roles/c8s-network-role"
C7_CONTAINER_IMAGE="quay.io/linux-system-roles/c7-network-role"
C9S_CONTAINER_IMAGE="quay.io/linux-system-roles/c9s-network-role"
PODMAN_OPTS="--systemd=true --privileged"
# FIXME: test_wireless has been removed because is not supported on CI
@ -56,6 +57,9 @@ case $OS_TYPE in
"c7")
CONTAINER_IMAGE=$C7_CONTAINER_IMAGE
;;
"c9s")
CONTAINER_IMAGE=$C9S_CONTAINER_IMAGE
;;
*)
echo "Unsupported OS type $OS_TYPE"
exit 1

View file

@ -16,6 +16,7 @@ jobs:
include:
- os: "c7"
- os: "c8s"
- os: "c9s"
steps:
- uses: actions/checkout@v2