Skip to content

Commit

Permalink
Added Github Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincoakley committed May 15, 2020
1 parent 40bf7f1 commit 219c41c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/molecule-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Molecule Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
molecule_distro: ['centos7', 'centos8', 'ubuntu1804', 'ubuntu2004']
env:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks

steps:
- uses: actions/checkout@v1
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible-lint flake8 molecule docker
- name: Test with molecule
run: |
molecule test --all
env:
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}

0 comments on commit 219c41c

Please sign in to comment.