-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (53 loc) · 1.6 KB
/
molecule.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
---
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/molecule-action@4.0.9
with:
command: lint
test:
needs:
- lint
runs-on: ubuntu-latest
strategy:
matrix:
image:
- registry.gitlab.com/aussielunix/ansible/molecule-containers/ubuntu:focal # 20.04
- registry.gitlab.com/aussielunix/ansible/molecule-containers/ubuntu:jammy # 22.04
- registry.gitlab.com/aussielunix/ansible/molecule-containers/ubuntu:noble # 24.04
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: Disable apparmor on the runner because of an alleged bug which
interferes with mysql service commands. See
https://github.com/geerlingguy/ansible-role-mysql/issues/422
run: |
set -x
sudo apt-get install apparmor-profiles
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule
uses: robertdebock/molecule-action@4.0.9
with:
image: "${{ matrix.image }}"
options: parallel
env:
MOLECULE_DOCKER_IMAGE: "${{ matrix.image }}"
max_failures: 1