-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (39 loc) · 1.13 KB
/
ansible-playbook.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
name: CI
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Run pre-commit
uses: pre-commit/[email protected]
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby and Ruby gems
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Ansible
run: python3.11 -m pip install ansible
- name: disable apparmor profile for mysqld # Needed to start mariadb server without AppArmor getting in the way
run: >
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/;
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld;
sudo aa-status
- name: Run Kitchen tests
run: bundle exec kitchen test