47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Debug
|
|
run: |
|
|
echo "START"
|
|
whoami
|
|
pwd
|
|
ls -la
|
|
|
|
- name: Install deps
|
|
shell: bash
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y python3 python3-pip
|
|
pip3 install ansible
|
|
|
|
- name: Python syntax check
|
|
shell: bash
|
|
run: |
|
|
python3 -m py_compile \
|
|
migration-validation-framework/cli.py \
|
|
migration-validation-framework/collectors/*.py \
|
|
migration-validation-framework/validators/*.py \
|
|
migration-validation-framework/reports/*.py
|
|
|
|
- name: Ansible syntax check
|
|
shell: bash
|
|
run: |
|
|
ansible-playbook -i enterprise-infra-simulator/inventory/hosts.ini \
|
|
--syntax-check enterprise-infra-simulator/playbooks/*.yml
|
|
|
|
- name: Docker compose validation
|
|
shell: bash
|
|
run: |
|
|
docker compose -f observability-stack/docker-compose.yml config |