Skip to content

Lint Yaml

Lint Yaml #13

Workflow file for this run

---
name: Lint Yaml
on: [pull_request, workflow_dispatch]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install linters
run: sudo apt update && sudo apt install ansible-lint -y --no-install-recommends
- name: Setup ansible-lint and yamllint
run: pip install ansible-lint yamllint
- name: Run yamllint
run: yamllint .
- name: Run ansible-lint
run: ansible-lint roles/