Fixes #3: Fix linting issues, add ansible-lint and yamllint configuration.

This commit is contained in:
Jeff Geerling
2020-05-12 15:17:06 -05:00
parent bad25d1ba5
commit e47af78bfd
9 changed files with 86 additions and 46 deletions

31
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
---
name: Lint
'on':
pull_request:
push:
branches:
- master
jobs:
test:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
- name: Set up Python 3.7.
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install yamllint ansible-lint
- name: Run yamllint.
run: yamllint .
- name: Run ansible-lint.
run: ansible-lint