-
Notifications
You must be signed in to change notification settings - Fork 22
50 lines (42 loc) · 1.25 KB
/
molecule-php.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
# Github action to run Molecule for "php"
name: php
on:
push:
paths:
- 'roles/httpd/**'
- 'roles/php/**'
- 'roles/static/**'
- 'roles/metadata/**'
- 'roles/openconext-common/**'
- 'roles/engineblock/**'
- 'roles/profile/**'
- 'molecule/php/**'
- '.github/workflows/molecule-php.yml'
pull_request:
paths:
- 'roles/httpd/**'
- 'roles/php/**'
- 'roles/static/**'
- 'roles/metadata/**'
- 'roles/openconext-common/**'
- 'roles/engineblock/**'
- 'roles/profile/**'
- 'molecule/php/**'
- '.github/workflows/molecule-php.yml'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Installing dependencies
run: pip install jinja2 ansible molecule molecule-docker pytest-testinfra pytest setuptools
- name: disable apparmor for mysql
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
- name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: Run role tests
run: molecule test -s php