Skip to content

Commit ca41299

Browse files
committed
bump CI to include RL9
1 parent b8a2f12 commit ca41299

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
name: CI
3-
'on':
3+
on:
44
pull_request:
55
push:
66
branches:
77
- master
88

99
jobs:
10-
11-
test:
10+
molecule:
1211
name: Molecule
1312
# Workaround: systemd/kernel compatibility issue:
1413
# Failed to parse bus message: Invalid argument
@@ -25,6 +24,7 @@ jobs:
2524
matrix:
2625
image:
2726
- 'rockylinux:8.8'
27+
- 'rockylinux:9.3'
2828
scenario:
2929
- test1
3030
- test1b
@@ -75,22 +75,41 @@ jobs:
7575
ANSIBLE_FORCE_COLOR: '1'
7676
MOLECULE_IMAGE: ${{ matrix.image }}
7777

78-
runonce:
79-
name: Checks
80-
runs-on: ubuntu-20.04
78+
lint:
79+
name: Lint
80+
runs-on: ubuntu-22.04
81+
steps:
82+
- name: Check out the codebase.
83+
uses: actions/checkout@v3
84+
85+
- name: Set up Python 3.9
86+
uses: actions/setup-python@v5
87+
with:
88+
python-version: '3.9'
89+
90+
- name: Install lint dependencies
91+
run: |
92+
pip3 install -U ansible ansible-lint
93+
94+
- name: Run Ansible lint
95+
run: ansible-lint .
96+
97+
filter-tests:
98+
name: Filter tests
99+
runs-on: ubuntu-22.04
81100
steps:
82101
- name: Check out the codebase.
83102
uses: actions/checkout@v3
84103

85104
- name: Set up Python 3.
86-
uses: actions/setup-python@v4
105+
uses: actions/setup-python@v5
87106
with:
88107
python-version: '3.9'
89108

90109
- name: Install test dependencies.
91110
run: |
92111
pip3 install -U ansible molecule[podman] yamllint ansible-lint
93-
ansible-galaxy collection install containers.podman:>=1.10.1 # otherwise get https://github.com/containers/ansible-podman-collections/issues/428
112+
# ansible-galaxy collection install containers.podman:>=1.10.1 # otherwise get https://github.com/containers/ansible-podman-collections/issues/428
94113
95114
- name: Display ansible version
96115
run: ansible --version
@@ -104,8 +123,5 @@ jobs:
104123
- name: Run Ansible syntax check
105124
run: ansible-playbook tests/test.yml -i tests/inventory --syntax-check
106125

107-
- name: Run Ansible lint
108-
run: ansible-lint .
109-
110126
- name: Test custom filters
111127
run: ansible-playbook tests/filter.yml -i tests/inventory -i tests/inventory-mock-groups

0 commit comments

Comments
 (0)