Make yes/no handling consistent with other roles. #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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) }} | |
exclude: | |
- target: debian:buster | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
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 }} |