ansible/.gitea/workflows/lint.yml

19 lines
441 B
YAML
Raw Permalink Normal View History

name: "Lint"
on: push
jobs:
lint:
name: "Lint"
runs-on: python-bookworm
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Activate venv & install dependencies
run: |
python3 -m venv venv
. venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
pip install ansible ansible-lint
- name: Lint
run: ansible-lint --show-relpath .