2020-10-01 16:23:22 +08:00
|
|
|
name: ansible-lint
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-06-30 07:24:36 +08:00
|
|
|
python-version: '3.8'
|
2020-10-01 16:23:22 +08:00
|
|
|
architecture: x64
|
2021-06-30 02:47:33 +08:00
|
|
|
- run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 netaddr
|
2021-07-06 02:20:35 +08:00
|
|
|
- run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample dashboard.yml
|
2021-06-30 02:47:33 +08:00
|
|
|
- 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
|
2021-07-06 02:20:35 +08:00
|
|
|
- run: ansible-playbook -i ./tests/functional/all_daemons/hosts dashboard.yml --syntax-check --list-tasks -vv
|
2021-06-30 02:47:33 +08:00
|
|
|
- run: ansible-playbook -i ./tests/functional/all_daemons/hosts infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv
|