+3
-20
@@ -9,39 +9,22 @@ jobs:
|
|||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Debug
|
|
||||||
run: |
|
|
||||||
echo "START"
|
|
||||||
whoami
|
|
||||||
pwd
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y python3 python3-pip
|
apt-get install -y python3 python3-pip ansible docker.io
|
||||||
pip3 install ansible
|
|
||||||
|
|
||||||
- name: Python syntax check
|
- name: Python syntax check
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
python3 -m py_compile \
|
find migration-validation-framework -name "*.py" -exec 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
|
- name: Ansible syntax check
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i enterprise-infra-simulator/inventory/hosts.ini \
|
ansible-playbook -i enterprise-infra-simulator/inventory/hosts.ini \
|
||||||
--syntax-check enterprise-infra-simulator/playbooks/*.yml
|
--syntax-check enterprise-infra-simulator/playbooks/*.yml
|
||||||
|
|
||||||
- name: Docker compose validation
|
- name: Docker compose validation
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
docker compose -f observability-stack/docker-compose.yml config
|
docker compose -f observability-stack/docker-compose.yml config
|
||||||
Reference in New Issue
Block a user