You've already forked ansible-role-repo-epel
Add build action
This commit is contained in:
29
.github/workflows/main.yml
vendored
Normal file
29
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
name: Molecule Test
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
molecule_distro: ['centos7', 'centos8', 'almalinux8' ]
|
||||
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 molecule docker
|
||||
- name: Test with molecule
|
||||
run: |
|
||||
molecule test --all
|
||||
env:
|
||||
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}
|
||||
Reference in New Issue
Block a user