[linter] add missing common tags #88
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: Molecule Test | |
on: | |
push: | |
tags: | |
- "*" | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
molecule_tests: | |
runs-on: ubuntu-latest | |
env: | |
COLLECTION_NAMESPACE: netways | |
COLLECTION_NAME: backup | |
strategy: | |
max-parallel: 4 | |
matrix: | |
distro: [centos7, rockylinux8, ubuntu2004, ubuntu1804] | |
scenario: [default] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.11 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements-test.txt | |
- name: Install collection | |
run: | | |
mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE | |
cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME | |
- name: Install geerlingguy.mysql roles | |
run: ansible-galaxy install geerlingguy.mysql | |
- name: Test with molecule | |
run: | | |
ansible --version | |
molecule --version | |
molecule --debug test -s ${{ matrix.scenario }} | |
env: | |
MOLECULE_DISTRO: ${{ matrix.distro }} | |
PY_COLORS: "1" | |
ANSIBLE_FORCE_COLOR: "1" |