1
1
---
2
2
name : CI
3
- ' on ' :
3
+ on :
4
4
pull_request :
5
5
push :
6
6
branches :
7
7
- master
8
8
9
9
jobs :
10
-
11
- test :
10
+ molecule :
12
11
name : Molecule
13
12
# Workaround: systemd/kernel compatibility issue:
14
13
# Failed to parse bus message: Invalid argument
25
24
matrix :
26
25
image :
27
26
- ' rockylinux:8.8'
27
+ - ' rockylinux:9.3'
28
28
scenario :
29
29
- test1
30
30
- test1b
@@ -75,22 +75,41 @@ jobs:
75
75
ANSIBLE_FORCE_COLOR : ' 1'
76
76
MOLECULE_IMAGE : ${{ matrix.image }}
77
77
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
81
100
steps :
82
101
- name : Check out the codebase.
83
102
uses : actions/checkout@v3
84
103
85
104
- name : Set up Python 3.
86
- uses : actions/setup-python@v4
105
+ uses : actions/setup-python@v5
87
106
with :
88
107
python-version : ' 3.9'
89
108
90
109
- name : Install test dependencies.
91
110
run : |
92
111
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
94
113
95
114
- name : Display ansible version
96
115
run : ansible --version
@@ -104,8 +123,5 @@ jobs:
104
123
- name : Run Ansible syntax check
105
124
run : ansible-playbook tests/test.yml -i tests/inventory --syntax-check
106
125
107
- - name : Run Ansible lint
108
- run : ansible-lint .
109
-
110
126
- name : Test custom filters
111
127
run : ansible-playbook tests/filter.yml -i tests/inventory -i tests/inventory-mock-groups
0 commit comments