File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,25 @@ jobs:
25
25
- stable_push
26
26
steps :
27
27
- name : Check out the codebase
28
- if : " !(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
28
+ if : " !(contains( matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
29
29
30
30
31
31
- name : Set up Python 3
32
- if : " !(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
32
+ if : " !(contains( matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
33
33
34
34
with :
35
35
python-version : 3.x
36
36
37
37
- name : Install Molecule dependencies
38
- if : " !(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
38
+ if : " !(contains( matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
39
39
run : pip3 install -r .github/workflows/requirements/requirements_molecule.txt
40
40
41
41
- name : Install Ansible base dependencies
42
42
if : " !(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
43
43
run : ansible-galaxy install -r .github/workflows/requirements/requirements_ansible.yml
44
44
45
45
- name : Run Molecule tests
46
- if : " !(matrix.scenario == 'plus' && github.event.pull_request.head.repo.full_name != github.repository)"
46
+ if : " !(contains( matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
47
47
run : molecule test -s ${{ matrix.scenario }}
48
48
env :
49
49
PY_COLORS : " 1"
Original file line number Diff line number Diff line change @@ -212,6 +212,8 @@ ENHANCEMENTS:
212
212
* Replace Molecule tests using Debian stretch with Debian buster (stretch has reached its EoL), and update list of supported platforms.
213
213
* Replace Ansible base with Ansible core. Ansible core will be the "core" Ansible release moving forward from Ansible `2.11`.
214
214
* Update GitHub actions to add a workflow dispatch option.
215
+ * Update GitHub actions `if` conditionals to use the `contains` function instead of checking for exact names.
216
+ * Remove Debian Buster from the `plus` Molecule scenario since it often fails in the GitHub Actions CI/CD pipeline.
215
217
* Replace "yes"/"no" boolean values with "true"/"false" to comply with YAML spec `1.2`.
216
218
* Ensure the default values for the `nginx.conf` template match the default values found on a fresh NGINX installation.
217
219
Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ platforms:
17
17
volumes :
18
18
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
19
19
command : " /usr/sbin/init"
20
- - name : debian-buster
21
- image : debian:buster-slim
22
- dockerfile : ../common/Dockerfile.j2
23
- privileged : true
24
- volumes :
25
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
26
- command : " /sbin/init"
27
20
- name : ubuntu-bionic
28
21
image : ubuntu:bionic
29
22
dockerfile : ../common/Dockerfile.j2
You can’t perform that action at this time.
0 commit comments