From c73a2c46d00d9e8e7d6bc53c18cbf1e5b1c03851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20W=C3=BCrsten?= Date: Wed, 1 Feb 2023 13:08:58 +0100 Subject: [PATCH] feat: add ubuntu 20.04 testing --- .github/workflows/test.yml | 8 ++++++++ meta/main.yml | 1 + molecule/default/molecule.yml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d46c50c..50ad53b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,11 @@ on: jobs: test: runs-on: ubuntu-20.04 + strategy: + matrix: + distro: + - ubuntu20 + - ubuntu22 steps: - name: Checkout repository uses: actions/checkout@v3 @@ -31,3 +36,6 @@ jobs: run: | molecule destroy molecule test + env: + MOLECULE_DISTRO: ${{ matrix.distro }} + diff --git a/meta/main.yml b/meta/main.yml index 50831c4..09429d5 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -11,6 +11,7 @@ galaxy_info: platforms: - name: Ubuntu versions: + - focal - jammy galaxy_tags: - potos diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 8062c8b..b0af7a3 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -8,7 +8,7 @@ driver: platforms: - name: instance - image: ghcr.io/projectpotos/ubuntu22-ansible-test:latest + image: ghcr.io/projectpotos/${MOLECULE_DISTRO}-ansible-test:latest pre_build_image: yes command: /lib/systemd/systemd privileged: yes