You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/.github/workflows/ci.yaml

35 lines
820 B
YAML

---
name: Test Playbook
on:
pull_request:
push:
branches:
- "master"
jobs:
homelab-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Molecule
uses: gofrolist/molecule-action@v2
with:
molecule_command: test
molecule_working_dir: ansible/roles/setup_docker
env:
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
# - name: Set up Python 3.8.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.8.9
# - name: Install dependencies
# run: pip install -r requirements.txt
#
# - name: Test with molecule
# run: |
# cd ansible/roles/setup_docker
# molecule test
# env:
# PY_COLORS: "1"
# ANSIBLE_FORCE_COLOR: "1"