]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
workflow: add syntax check
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 29 Jun 2021 18:47:33 +0000 (20:47 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 Jun 2021 07:52:44 +0000 (09:52 +0200)
This adds the ansible --syntax-check test in the ansible-lint workflow

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5ed423ad8886a8985a4aa6424930f812864845bc)

.github/workflows/ansible-lint.yml

index 7f61ae748e98bf67a7dfbe8210d72fae9295c1d5..32b697ca81c0e58d4d73c05276bd435f07aa9e6c 100644 (file)
@@ -14,8 +14,11 @@ jobs:
         with:
           python-version: ${{ matrix.python-version }}
           architecture: x64
-      - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7
+      - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 netaddr
         if: matrix.python-version == '3.6'
-      - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint ruamel.yaml==0.16.13 ruamel.yaml.clib==0.2.2
+      - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint ruamel.yaml==0.16.13 ruamel.yaml.clib==0.2.2 netaddr
         if: matrix.python-version == '2.7'
-      - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample
\ No newline at end of file
+      - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample
+      - run: ansible-playbook -i ./tests/functional/all_daemons/hosts site.yml.sample --syntax-check --list-tasks -vv
+      - run: ansible-playbook -i ./tests/functional/all_daemons/hosts site-container.yml.sample --syntax-check --list-tasks -vv
+      - run: ansible-playbook -i ./tests/functional/all_daemons/hosts infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv