Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: CI
on:
schedule:
- cron: '0 0 * * 1'
pull_request:
push:
branches:
Expand All @@ -15,7 +17,7 @@ jobs:
with:
fetch-depth: 0 # needed for progressive mode to work
- name: Run ansible-lint
uses: ansible/ansible-lint-action@v6
uses: ansible/ansible-lint@v25.8.2

molecule:
name: Molecule
Expand All @@ -36,10 +38,10 @@ jobs:
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.12'

- name: Install test dependencies.
run: pip3 install ansible molecule molecule-plugins[docker] docker
run: pip3 install ansible==9.13.0 molecule molecule-plugins[docker] docker

- name: Run Molecule tests.
run: molecule test
Expand All @@ -52,12 +54,12 @@ jobs:
strategy:
matrix:
os:
- macos-13
- macos-14
- macos-15
include:
- os: macos-13
arch: intel
- os: macos-14
arch: intel
- os: macos-15
arch: arm
steps:
- name: Check out the codebase.
Expand All @@ -66,36 +68,36 @@ jobs:
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.12'

- name: Install test dependencies.
run: pip3 install ansible molecule
run: pip3 install ansible==9.13.0 molecule==24.12.0

- name: Run Molecule tests.
run: molecule test -s macos

molecule-win:
name: molecule-win
runs-on: windows-latest
runs-on: windows-2022
steps:
- name: Check out the codebase.
uses: actions/checkout@v4

- uses: devops37/ssh-win-from-wsl@v1
- uses: devops37/ssh-win-from-wsl@v2

- name: Install Python3 on wsl
shell: wsl-bash {0}
run: |
sudo apt-get update
sudo apt-get -y install python3 python3-pip
python3 -m pip install ansible molecule
python3 -m pip install --break-system-packages ansible==9.13.0 molecule==24.12.0

- name: Run Molecule tests.
shell: wsl-bash {0}
run: |
ip route show
cat /etc/resolv.conf
RUNNER_IP=$(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
RUNNER_IP=$(ip route show | grep -i default | awk '{ print $3}')
echo $RUNNER_IP
sed -i "s/RUNNER_IP/$RUNNER_IP/g" molecule/windows/molecule.yml
pwd
Expand Down
Loading