add functionality for pun_pre_hook (#108) #347
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: Molecule Tests | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
- release-* | |
pull_request: | |
branches: | |
- main | |
- master | |
- develop | |
- release-* | |
jobs: | |
rpm-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
image: | |
- 'centos:7' | |
- 'centos:8' | |
scenario: | |
- 'default' | |
- 'templates' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: install dependencies | |
run: | | |
python3 -m pip install -r molecule/requirements.txt | |
ansible-galaxy collection install community.general | |
- name: run linter | |
run: molecule lint | |
- name: run tests | |
run: molecule test --scenario-name=${{ matrix.scenario }} | |
env: | |
IMAGE: '${{ matrix.image }}' | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' | |
src-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
image: | |
- 'ubuntu:20.04' | |
- 'ubuntu:18.04' | |
- 'debian:10' | |
scenario: | |
- 'src-build' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: install dependencies | |
run: | | |
python3 -m pip install -r molecule/requirements.txt | |
ansible-galaxy collection install community.general | |
- name: run linter | |
run: molecule lint | |
- name: run tests | |
run: molecule test --scenario-name=${{ matrix.scenario }} | |
env: | |
IMAGE: '${{ matrix.image }}' | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' |