Skip to content

Release role

Release role #1

Workflow file for this run

---
name: Tests
on:
pull_request:
branches:
- main
jobs:
generate-matrix:
name: Generate matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate-matrix.outputs.matrix }}
steps:
- name: Generate matrix
id: generate-matrix
uses: wandnz/action-supported-distro-releases@v1
molecule:
name: Molecule
runs-on: ubuntu-latest
needs: generate-matrix
strategy:
matrix:
target: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies
run: pip3 install -r test-requirements.txt
- name: Run molecule
run: molecule test
env:
MOLECULE_DOCKER_IMAGE: ${{ matrix.target }}