42 lines
680 B
YAML
42 lines
680 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: Run ansible-lint
|
||
|
uses: ansible/ansible-lint@v24.7.0
|