Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit c539aeb

Browse files
authored
Merge pull request #72 from staticdev/feature/improved-test-os-coverage
Improved test OS coverage
2 parents 0be0cdb + fa66184 commit c539aeb

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ jobs:
3838

3939
strategy:
4040
matrix:
41-
img:
42-
- cisagov/docker-debian11-ansible:latest
41+
distro:
42+
- debian11
43+
- debian10
44+
- ubuntu2004
45+
4346
steps:
4447
- name: Check out the repository
4548
uses: actions/checkout@v2.3.4
@@ -59,4 +62,4 @@ jobs:
5962
env:
6063
PY_COLORS: "1"
6164
ANSIBLE_FORCE_COLOR: "1"
62-
MOLECULE_IMG: ${{ matrix.img }}
65+
MOLECULE_DISTRO: ${{ matrix.distro }}

meta/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ galaxy_info:
1515
- buster
1616
- name: Ubuntu
1717
versions:
18-
- xenial
19-
- bionic
2018
- focal
21-
- groovy
2219

2320
galaxy_tags:
2421
- python

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ driver:
77
name: docker
88
platforms:
99
- name: instance
10-
image: "${MOLECULE_IMG:-cisagov/docker-debian11-ansible:latest}"
10+
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest"
1111
command: ${MOLECULE_DOCKER_COMMAND:-""}
1212
volumes:
1313
- /sys/fs/cgroup:/sys/fs/cgroup:ro

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
become: true
1515
with_items:
1616
- python3-pip
17-
- python3-venv # needed for nox
17+
- python3-venv # needed for nox
1818

1919
- name: Check if pipx is installed
2020
command: "{{ ansible_env.HOME }}/.local/bin/pipx --version"
@@ -30,7 +30,7 @@
3030

3131
- name: Check if pre-commit is installed
3232
stat:
33-
path: "{{ ansible_env.HOME }}/.local/pipx/venvs/pre-commit"
33+
path: "{{ ansible_env.HOME }}/.local/bin/pre-commit"
3434
register: pre_commit_folder_check
3535

3636
- name: Install pre-commit

0 commit comments

Comments
 (0)