k3s-ansible/.github/workflows/lint.yml

32 lines
536 B
YAML

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