Tox will try Ansible 4 and 5.

This commit is contained in:
Robert de Bock 2022-01-26 13:13:20 +01:00
parent 6e280c5f06
commit 2e7a96e161
4 changed files with 7 additions and 9 deletions

View file

@ -22,7 +22,7 @@ jobs:
with: with:
path: "${{ github.repository }}" path: "${{ github.repository }}"
- name: molecule - name: molecule
uses: robertdebock/molecule-action@master uses: robertdebock/molecule-action@4.0.6
with: with:
command: lint command: lint
test: test:
@ -63,7 +63,7 @@ jobs:
- name: parse apparmor for mysql - name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule - name: molecule
uses: robertdebock/molecule-action@master uses: robertdebock/molecule-action@4.0.6
with: with:
image: ${{ matrix.config.image }} image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }} tag: ${{ matrix.config.tag }}

View file

@ -1,5 +1,5 @@
--- ---
image: "robertdebock/github-action-molecule" image: "robertdebock/github-action-molecule:4.0.5"
services: services:
- docker:dind - docker:dind

View file

@ -11,7 +11,6 @@ lint: |
set -e set -e
yamllint . yamllint .
ansible-lint ansible-lint
ansible-later
driver: driver:
name: docker name: docker
platforms: platforms:

View file

@ -3,17 +3,16 @@
# #
[tox] [tox]
minversion = 3.21.4 minversion = 3.21.4
envlist = py{310}-ansible-{2.10,2.11,2.12} envlist = py{310}-ansible-{4,5}
skipsdist = true skipsdist = true
[testenv] [testenv]
deps = deps =
2.10: ansible-base == 2.10.* 4: ansible == 4.*
2.11: ansible-core == 2.11.* 5: ansible == 5.*
2.12: ansible-core == 2.12.*
molecule[docker] molecule[docker]
docker == 4.* docker == 5.*
ansible-lint == 5.* ansible-lint == 5.*
commands = molecule test commands = molecule test
setenv = setenv =