Try using matrix with action-molecule

This commit is contained in:
Paweł Krawczyk 2021-08-07 12:44:26 +01:00
parent 6084cfce83
commit 5df70d971f
No known key found for this signature in database
GPG Key ID: 32AF1F39C4EE03F2
1 changed files with 25 additions and 4 deletions

View File

@ -1,20 +1,41 @@
--- ---
name: Molecule name: ipr-cnrs.nftables.molecule
on: on:
push: push:
branches: [main] branches: [master]
pull_request: pull_request:
branches: [main] branches: [master]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: molecule:
runs-on: ubuntu-latest 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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
path: ${{ github.repository }}
- name: Ansible Molecule - name: Ansible Molecule
uses: MonolithProjects/action-molecule@v1.4.3 uses: MonolithProjects/action-molecule@v1.4.3
with:
os: ${{ matrix.config.os }}
tag: ${{ matrix.config.tag }}