61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
---
|
|
#
|
|
# Ansible managed
|
|
#
|
|
|
|
name: Ansible Molecule
|
|
|
|
on:
|
|
push:
|
|
tags_ignore:
|
|
- '*'
|
|
pull_request:
|
|
schedule:
|
|
- cron: '5 5 5 * *'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: "${{ github.repository }}"
|
|
- name: molecule
|
|
uses: robertdebock/molecule-action@2.6.2
|
|
with:
|
|
command: lint
|
|
test:
|
|
needs:
|
|
- lint
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
config:
|
|
- image: "amazonlinux"
|
|
tag: "1"
|
|
- image: "amazonlinux"
|
|
tag: "latest"
|
|
- image: "centos"
|
|
tag: "7"
|
|
- image: "centos"
|
|
tag: "latest"
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: "${{ github.repository }}"
|
|
- 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: molecule
|
|
uses: robertdebock/molecule-action@2.6.2
|
|
with:
|
|
image: ${{ matrix.config.image }}
|
|
tag: ${{ matrix.config.tag }}
|
|
options: "--parallel all"
|
|
env:
|
|
TOX_PARALLEL_NO_SPINNER: 1
|