Skip to content

Merge pull request #25 from gforcada/overhaul-venvs #20

Merge pull request #25 from gforcada/overhaul-venvs

Merge pull request #25 from gforcada/overhaul-venvs #20

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
- main
jobs:
yaml:
name: YAML syntax Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install yamllint
- name: Lint code.
run: |
yamllint */*.yml
playbook:
name: ansible-playbook lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install ansible
- name: Lint code.
run: |
ansible-playbook --syntax-check ansible.yml
ansible-lint:
name: ansible-lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install ansible-lint
- name: Lint code.
run: |
ansible-lint .