Skip to content

Commit

Permalink
Merge pull request #10 from glillico/ghactions
Browse files Browse the repository at this point in the history
Updated supported OS's.
  • Loading branch information
glillico authored Jun 6, 2024
2 parents ee4b970 + ed7f22e commit 86b8a4a
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out git repository.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'glillico.configure_sshd'

- name: Setup python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -35,6 +35,39 @@ jobs:
run: |
yamllint .
molecule-legacy:
needs: lint
name: Molecule (Ansible 2.16.x)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- rockylinux8
tag:
- latest
steps:
- name: Check out git repository.
uses: actions/checkout@v4
with:
path: 'glillico.configure_sshd'

- name: Setup python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install package dependencies.
run: pip3 install "ansible-core<2.17" docker molecule "molecule-plugins[docker]"

- name: Perform molecule tests.
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
MOLECULE_TAG: ${{ matrix.tag }}

molecule:
needs: lint
name: Molecule
Expand All @@ -43,23 +76,21 @@ jobs:
fail-fast: false
matrix:
distro:
- centos7
- debian10
- debian11
- rockylinux8
- debian12
- rockylinux9
- ubuntu2004
- ubuntu2204
- ubuntu2404
tag:
- latest
steps:
- name: Check out git repository.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'glillico.configure_sshd'

- name: Setup python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down

0 comments on commit 86b8a4a

Please sign in to comment.