From 2d97f48e2c69f1bdea77c86f16632277b330ff9d Mon Sep 17 00:00:00 2001 From: Manuel Hutter Date: Thu, 7 Jul 2022 09:32:23 +0200 Subject: [PATCH] ci: Run Ansible syntax checks Signed-off-by: Manuel Hutter --- .github/workflows/ci.yml | 9 +++++++++ .travis.yml | 20 -------------------- 2 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddf6f13..ea6f2eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,3 +14,12 @@ jobs: steps: - uses: actions/checkout@v3 - run: yamllint . + + ansible-syntax: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Prepare Ansible config for tests + run: printf '[defaults]\nroles_path=../' > ansible.cfg + - name: Ansible syntax check + run: ansible-playbook tests/ci.yml -i tests/inventory --syntax-check diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2d93969..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -language: python -python: - - "2.7" - - "3.6" -cache: pip - -install: - # Install ansible - - pip install ansible yamllint - # Create ansible.cfg with correct roles_path - - printf '[defaults]\nroles_path=../' > ansible.cfg - -script: - - yamllint --strict . - # Basic role syntax check - - ansible-playbook tests/ci.yml -i tests/inventory --syntax-check - -notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/