diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 867160a..25e393a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,9 +8,17 @@ on: jobs: validate: - runs-on: ubuntu-latest + runs-on: docker + steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + apt-get update + apt-get install -y python3 python3-pip docker.io + pip3 install ansible - name: Python syntax check run: | @@ -22,10 +30,9 @@ jobs: - name: Ansible syntax check run: | - python3 -m pip install --user ansible ansible-playbook -i enterprise-infra-simulator/inventory/hosts.ini \ --syntax-check enterprise-infra-simulator/playbooks/*.yml - name: Docker compose validation run: | - docker compose -f observability-stack/docker-compose.yml config + docker compose -f observability-stack/docker-compose.yml config \ No newline at end of file