From e341ff9fa850ea86099cb8f5227cc382ec25c422 Mon Sep 17 00:00:00 2001 From: Norman Ziegner Date: Thu, 27 Aug 2020 10:21:26 +0200 Subject: [PATCH] Run molecule test on different images Signed-off-by: Norman Ziegner --- .github/workflows/continuous-integration.yml | 5 +++++ molecule/default/molecule.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 6c0d2c0..29c6f64 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -20,6 +20,9 @@ jobs: test: needs: validate runs-on: ubuntu-latest + strategy: + matrix: + images: ['jrei/systemd-ubuntu:18.04', 'jrei/systemd-ubuntu:20.04'] steps: - name: Check out repository uses: actions/checkout@v2 @@ -28,3 +31,5 @@ jobs: - name: Molecule test uses: robertdebock/molecule-action@2.6.1 + with: + image: "${{ matrix.images }}" diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 7478133..ee863e4 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -7,7 +7,7 @@ driver: name: docker platforms: - name: instance - image: jrei/systemd-ubuntu:18.04 + image: ${MOLECULE_IMAGE:-jrei/systemd-ubuntu:20.04} pre_build_image: true privileged: true override_command: false