Setup qa pipeline #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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' | |
cache: 'pip' | |
- name: Install test dependencies. | |
run: pip 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' |