-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
143 lines (112 loc) · 3.87 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
name: CI
'on':
pull_request:
push:
branches:
- master
schedule:
- cron: "10 2 * * 0"
jobs:
scripts:
name: Scripts
runs-on: ubuntu-latest
strategy:
matrix:
include:
- test_script: collection
- test_script: molecule
- test_script: orchestration
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run test script.
run: tests/${{ matrix.test_script }}.sh
playbooks:
name: Playbooks
runs-on: ubuntu-latest
strategy:
matrix:
include:
# TODO: This started failing on GitHub Actions.
# See: https://github.com/geerlingguy/ansible-for-devops/issues/429
# - playbook: deployments.yml
# distro: ubuntu2004
# test_idempotence: false
# TODO: Not easy to test in CI at this time.
# - playbook: deployments-balancer.yml
# distro: ubuntu2004
# TODO: This started failing on GitHub Actions.
# See: https://github.com/geerlingguy/ansible-for-devops/issues/359
# - playbook: deployments-rolling.yml
# distro: ubuntu2004
- playbook: docker.yml
distro: ubuntu2004
test_idempotence: false
- playbook: docker-flask.yml
distro: ubuntu2004
test_idempotence: false
- playbook: docker-hubot.yml
distro: ubuntu2004
test_idempotence: false
- playbook: drupal.yml
distro: ubuntu2004
# TODO: Not easy to test in CI at this time.
# - playbook: dynamic-inventory.yml
# distro: ubuntu2004
- playbook: elk.yml
distro: ubuntu2004
# TODO: This started failing on GitHub Actions.
# See: https://github.com/geerlingguy/ansible-for-devops/issues/402
# - playbook: first-ansible-playbook.yml
# distro: centos7
- playbook: galaxy-role-servers.yml
distro: ubuntu2004
# TODO: Not easy to test in CI at this time.
# - playbook: gluster.yml
# distro: ubuntu2004
- playbook: https-self-signed.yml
distro: ubuntu2004
- playbook: https-nginx-proxy.yml
distro: debian10
# TODO: This started failing on GitHub Actions.
# See: https://github.com/geerlingguy/ansible-for-devops/issues/359
# - playbook: includes.yml
# distro: ubuntu2004
# TODO: This started failing on GitHub Actions.
# See: https://github.com/geerlingguy/ansible-for-devops/issues/359
# - playbook: jenkins.yml
# distro: ubuntu2004
# TODO: Not easy to test in CI at this time.
# - playbook: kubernetes.yml
# distro: debian9
# TODO: Not easy to test in CI at this time.
# - playbook: lamp-infrastructure.yml
# distro: ubuntu2004
- playbook: nodejs.yml
distro: rockylinux8
- playbook: nodejs-role.yml
distro: rockylinux8
- playbook: security.yml
distro: rockylinux8
- playbook: solr.yml
distro: ubuntu2004
- playbook: test-plugin.yml
distro: rockylinux8
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Download test shim.
run: |
wget -O tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/
chmod +x tests/test.sh
- name: Run playbook with test shim.
run: tests/test.sh
env:
playbook: ${{ matrix.playbook }}
distro: ${{ matrix.distro }}
test_idempotence: ${{ matrix.test_idempotence }}