Skip to content

Setup qa pipeline

Setup qa pipeline #9

Workflow file for this run

---
name: CI
on:
pull_request:
push:
branches:
development
main
jobs:
check-ansible:
name: Ansible
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ansible
steps:
- name: Checkout the codebase.
uses: actions/checkout@v4
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install docker yamllint ansible-lint ansible-core
- name: Install Ansible dependencies.
run: |
ansible-galaxy collection install community.general
ansible-galaxy collection install community.mysql
ansible-galaxy install --role-file requirements.yaml
- name: Run checks
run: bash qa.sh
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLORS: '1'