From 0fe30b0479b194dc9a80900a6dfac0613a84ea22 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 31 Jul 2022 00:05:10 -0500 Subject: [PATCH] Update tests --- .github/workflows/test_set_1.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_set_1.yml b/.github/workflows/test_set_1.yml index 882a840..3a367ca 100644 --- a/.github/workflows/test_set_1.yml +++ b/.github/workflows/test_set_1.yml @@ -17,7 +17,7 @@ jobs: if: github.repository_owner == 'hwdsl2' strategy: matrix: - os_version: ["centos:8s", "centos:7", "rockylinux:9", "rockylinux:8", "almalinux:9", "almalinux:8", "amazonlinux:2", "oraclelinux:9", "oraclelinux:8", "oraclelinux:7"] + os_version: ["centos:9s", "centos:8s", "centos:7", "rockylinux:9", "rockylinux:8", "almalinux:9", "almalinux:8", "amazonlinux:2", "oraclelinux:9", "oraclelinux:8", "oraclelinux:7"] fail-fast: false env: OS_VERSION: ${{ matrix.os_version }} @@ -535,7 +535,9 @@ jobs: exit 0 EOF - if [ "$OS_VERSION" = "centos:8s" ]; then + if [ "$OS_VERSION" = "centos:9s" ]; then + echo "FROM quay.io/centos/centos:stream9" > Dockerfile + elif [ "$OS_VERSION" = "centos:8s" ]; then echo "FROM quay.io/centos/centos:stream8" > Dockerfile else echo "FROM $OS_VERSION" > Dockerfile @@ -547,6 +549,13 @@ jobs: WORKDIR /opt/src RUN if command -v amazon-linux-extras; then amazon-linux-extras install -y kernel-ng; fi + EOF + + if [ "$OS_VERSION" = "centos:9s" ]; then + echo "RUN yum -y -q install systemd" >> Dockerfile + fi + + cat >> Dockerfile <<'EOF' RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ "$i" = \ systemd-tmpfiles-setup.service ] || rm -f "$i"; done); \