From 31b8b57ca2ccf5d2262c12dd7ec284dbe2011f38 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Tue, 2 Jul 2024 16:44:07 +0200 Subject: [PATCH] Make CI work on GitHub. --- .github/workflows/molecule.yml | 17 ++++++++++++----- .gitlab-ci.yml | 2 -- README.md | 2 +- meta/main.yml | 1 - molecule/default/molecule.yml | 2 +- requirements.txt | 6 +++--- 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 7107f91..4bf704d 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -33,8 +33,6 @@ jobs: tag: "latest" - image: "amazonlinux" tag: "latest" - - image: "enterpriselinux" - tag: "8" - image: "enterpriselinux" tag: "latest" - image: "debian" @@ -56,10 +54,19 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 + + - name: Set up Python 3. + uses: actions/setup-python@v5 with: - path: "${{ github.repository }}" + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: molecule - uses: robertdebock/molecule-action@6.0.1 - with: + run: molecule converge + env: image: ${{ matrix.config.image }} tag: ${{ matrix.config.tag }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f713ec2..f74f133 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,8 +16,6 @@ molecule: tag: "latest" - image: "amazonlinux" tag: "latest" - - image: "enterpriselinux" - tag: "8" - image: "enterpriselinux" tag: "latest" - image: "debian" diff --git a/README.md b/README.md index 8f537c3..9f46c4f 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ This role has been tested on these [container images](https://hub.docker.com/u/r |---------|----| |[Alpine](https://hub.docker.com/r/robertdebock/alpine)|all| |[Amazon](https://hub.docker.com/r/robertdebock/amazonlinux)|Candidate| -|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|8, 9| +|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9| |[Debian](https://hub.docker.com/r/robertdebock/debian)|all| |[Fedora](https://hub.docker.com/r/robertdebock/fedora)|all| |[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all| diff --git a/meta/main.yml b/meta/main.yml index 643aca7..88e7aa5 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -16,7 +16,6 @@ galaxy_info: - Candidate - name: EL versions: - - "8" - "9" - name: Debian versions: diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 0f2afd0..f878ac4 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -18,7 +18,7 @@ platforms: image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}" command: /sbin/init volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true pre_build_image: true provisioner: diff --git a/requirements.txt b/requirements.txt index 65b52f4..4d7adb3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -ansible-compat == 4.* -molecule == 6.* +ansible-compat == 24.* +molecule == 24.* molecule-plugins[docker] == 23.* -ansible-lint == 6.* +ansible-lint == 24.* paramiko == 3.*