From 841e4854fa8b97edfb2cd3a7252e732d7b40cfc5 Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Mon, 17 Nov 2025 15:46:47 +0100 Subject: [PATCH] test: extract ansible-lint to ci job (#739) ##### SUMMARY Extract ansible-lint to a CI job to speed up pre-commit. --- .github/workflows/lint.yml | 9 +++++++++ .pre-commit-config.yaml | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3d06e28..a0e117f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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: "" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92a9476..a069c58 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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