ansible-collection-apps/.forgejo/workflows/ansible-lint.yml
irl 05a3eda35c
Some checks failed
Ansible Lint Check / lint (push) Failing after 50s
ci: install core collection before lint
2026-07-12 15:19:25 +01:00

45 lines
1,010 B
YAML

---
name: Ansible Lint Check
on:
push:
branches: [main, develop]
jobs:
lint:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Create a virtual environment
run: |
python -m venv venv
- name: Install Ansible and ansible-dev-tools
run: |
source venv/bin/activate
pip install --upgrade pip
pip install ansible ansible-dev-tools
shell: bash
- name: Install core collection
run: |
source venv/bin/activate
ansible-galaxy collection install git+https://guardianproject.dev/sr2/ansible-collection-core.git
shell: bash
- name: Run ansible-lint
run: |
source venv/bin/activate
ansible-lint
shell: bash