+14
-5
@@ -3,24 +3,31 @@ name: ci
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu
|
runs-on: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Debug
|
||||||
|
run: |
|
||||||
|
echo "START"
|
||||||
|
whoami
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y python3 python3-pip docker.io
|
apt-get install -y python3 python3-pip
|
||||||
pip3 install ansible
|
pip3 install ansible
|
||||||
|
|
||||||
- name: Python syntax check
|
- name: Python syntax check
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
python3 -m py_compile \
|
python3 -m py_compile \
|
||||||
migration-validation-framework/cli.py \
|
migration-validation-framework/cli.py \
|
||||||
@@ -29,10 +36,12 @@ jobs:
|
|||||||
migration-validation-framework/reports/*.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