50 lines
870 B
YAML
50 lines
870 B
YAML
---
|
|
|
|
name: ci
|
|
'on':
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
|
|
yaml-lint:
|
|
name: YAML Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Fetch code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install test dependencies.
|
|
run: pip3 install yamllint
|
|
|
|
- name: Lint code.
|
|
run: |
|
|
yamllint .
|
|
|
|
ansible-lint:
|
|
name: Ansible Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Fetch code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install lib dependencies
|
|
run: pip3 install netaddr
|
|
|
|
- name: Run ansible-lint
|
|
uses: ansible/ansible-lint@v24.7.0
|