66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
---
|
|
# Got this action from: https://github.com/colin-mccarthy/ansible_lint_demo
|
|
|
|
name: Ansible Tests
|
|
on: pull_request
|
|
jobs:
|
|
yamllint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r dev-requirements.txt
|
|
- name: Test with molecule
|
|
run: make lint
|
|
molecule_centos:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt install docker
|
|
python -m pip install --upgrade pip
|
|
pip install -r dev-requirements.txt
|
|
- name: Test with molecule
|
|
run: make test_centos
|
|
molecule_debian:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt install docker
|
|
python -m pip install --upgrade pip
|
|
pip install -r dev-requirements.txt
|
|
- name: Test with molecule
|
|
run: make test_debian
|
|
molecule_ubuntu:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt install docker
|
|
python -m pip install --upgrade pip
|
|
pip install -r dev-requirements.txt
|
|
- name: Test with molecule
|
|
run: make test_ubuntu
|