abril/.github/workflows/lint.yml
Techno Tim 74e1dc1dfe
Pin GitHub Actions to SHA + Dependabot (#62)
* feat(repo): Add dependabot

* fix(ci): clean up

* fix(gh-actions): pin to sha

* fix(lint): fixing yaml lint

* feat(repo): Add dependabot

* fix(vagrant): up retry count to 60 because gh actions are sloooooow
2022-08-30 23:15:15 -05:00

31 lines
658 B
YAML

---
name: Linting
on:
pull_request:
push:
branches:
- master
jobs:
ansible-lint:
name: YAML Lint + Ansible Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2
- name: Set up Python 3.x
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 #4.0.2
with:
python-version: '3.x'
- name: Install test dependencies
run: pip3 install yamllint ansible-lint ansible
- name: Run yamllint
run: yamllint .
- name: Run ansible-lint
run: ansible-lint