From 5df70d971f09296127618e5d77e094970e5e5be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krawczyk?= <616047+kravietz@users.noreply.github.com> Date: Sat, 7 Aug 2021 12:44:26 +0100 Subject: [PATCH] Try using matrix with action-molecule --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f8b2338..eccb701 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,41 @@ --- -name: Molecule +name: ipr-cnrs.nftables.molecule on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] workflow_dispatch: jobs: - build: + molecule: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + config: + - os: debian + tag: latest + - os: ubuntu + tag: latest + - os: centos + tag: latest + - os: fedora + tag: latest + - os: archlinux + tag: latest + - os: latest + tag: latest steps: - uses: actions/checkout@v2 + with: + path: ${{ github.repository }} - name: Ansible Molecule uses: MonolithProjects/action-molecule@v1.4.3 + with: + os: ${{ matrix.config.os }} + tag: ${{ matrix.config.tag }}