1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

test: extract ansible-lint to CI job

Speed up pre-commit.
This commit is contained in:
jo 2025-11-17 15:43:52 +01:00
parent 79f78fae28
commit f98c22ddfe
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984
2 changed files with 9 additions and 11 deletions

View file

@ -23,3 +23,12 @@ jobs:
- name: Lint docs
run: make lint-docs
ansible-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ansible/ansible-lint@v25.11.0
env:
HCLOUD_TOKEN: ""

View file

@ -50,17 +50,6 @@ repos:
- id: antsibull-changelog-lint-changelog-yaml
args: [--strict]
- repo: https://github.com/ansible/ansible-lint
rev: v25.11.0
hooks:
- id: ansible-lint
name: ansible-lint
entry: env HCLOUD_TOKEN= python3 -m ansiblelint -v --force-color
args: [--offline]
additional_dependencies:
- ansible-core>=2.18
- netaddr
- repo: local
hooks:
- id: shfmt