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

This commit is contained in:
Jeff Geerling committed 2020-05-12 16:00:32 -05:00
1 parent bad25d1ba5
commit e47af78bfd
9 files changed
+86 -46

No files matched your search

+31
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