Add CI for linting
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora) (push) Successful in 10s

This commit is contained in:
2025-08-27 13:25:19 -04:00
parent 73fb9ac976
commit bf965f5e4d
2 changed files with 33 additions and 0 deletions

3
.ci.env Normal file
View File

@ -0,0 +1,3 @@
export ANSIBLE_LINT_EXCLUSION="--exclude .gitea"
export ANSIBLE_INVENTORY="-i 127.0.0.1, --connection=local"
export ANSIBLE_PLAYBOOK=""

View File

@ -0,0 +1,30 @@
name: Ansible Code Pipeline
run-name: ${{ gitea.actor }} is running Ansible Code Pipeline
on:
push:
branches:
- main
jobs:
Ansible-Development-Pipeline:
strategy:
matrix:
os: [ ansible-dev-fedora ]
runs-on: ${{ matrix.os }}
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Ansible Environment Verify
run: |
whoami
. ./.ci.env
env
git log -1
ansible --version
ansible-lint --version
- name: Run Ansible-Lint
run: |
. ./.ci.env
ansible-lint -v --offline $ANSIBLE_LINT_EXCLUSION