mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-06 06:04:26 -07:00
Add tests for Ansible core 2.17 (devel is 2.18 today) and bump tests dependencies (#623)
* Add tests for Ansible core 2.17 (devel is 2.18 today) * Drop tests for Ansible core 2.14 and add 2.17 * Cut duplicate exclude * Add back python 3.8 and 3.9 for stable2.15 * Bump action to prevent deprecation warnings * Cut python 3.9 for devel in roles tests * Attempt to fix GHA line folding * fix typo * Bump ubuntu Latest ansible-test doesn't work with old ubuntu. See here for more info: https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml#L83-L91 * fix docker_image var assignation * fix yamllint false positive * Attempt to fix docker_image_multiline assignation * Fix empty var due to scope of each command * Attempt to fix docker_image assignation * fix error "vars should be dict" * Document URL of the repository for the action ansible-test-gh-action * Disable role tests * Document ansible-core version tested * Cut ansible-core 2.14 from testing documentation
This commit is contained in:
parent
bfe2fdc3ff
commit
f105fd9a95
21 changed files with 59 additions and 63 deletions
69
.github/workflows/ansible-test-roles.yml.off
vendored
Normal file
69
.github/workflows/ansible-test-roles.yml.off
vendored
Normal file
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
name: Roles CI
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'roles/**'
|
||||
- '.github/workflows/ansible-test-roles.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'roles/**'
|
||||
- '.github/workflows/ansible-test-roles.yml'
|
||||
schedule:
|
||||
- cron: '0 6 * * *'
|
||||
|
||||
jobs:
|
||||
molecule:
|
||||
name: "Molecule (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }}, MySQL: ${{ matrix.mysql }})"
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
PY_COLORS: 1
|
||||
ANSIBLE_FORCE_COLOR: 1
|
||||
strategy:
|
||||
matrix:
|
||||
mysql:
|
||||
- 2.0.12
|
||||
ansible:
|
||||
- stable-2.15
|
||||
- stable-2.16
|
||||
- stable-2.17
|
||||
- devel
|
||||
python:
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
exclude:
|
||||
- python: 3.8
|
||||
ansible: stable-2.17
|
||||
|
||||
- python: 3.9
|
||||
ansible: stable-2.17
|
||||
|
||||
- python: 3.8
|
||||
ansible: devel
|
||||
|
||||
- python: 3.9
|
||||
ansible: devel
|
||||
|
||||
steps:
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: ansible_collections/community/mysql
|
||||
|
||||
- name: Set up Python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Install ansible-core (${{ matrix.ansible }})
|
||||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
||||
|
||||
- name: Install molecule and related dependencies
|
||||
run: |
|
||||
pip install ansible-lint docker flake8 molecule testinfra yamllint
|
||||
|
||||
# - name: Run molecule default test scenario
|
||||
# run: for d in roles/*/; do (cd "$d" && molecule --version && molecule test) done
|
||||
# working-directory: ./ansible_collections/community/mysql
|
Loading…
Add table
Add a link
Reference in a new issue