mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
test: extract ansible-lint to ci job (#739)
##### SUMMARY Extract ansible-lint to a CI job to speed up pre-commit.
This commit is contained in:
parent
79f78fae28
commit
841e4854fa
2 changed files with 9 additions and 11 deletions
9
.github/workflows/lint.yml
vendored
9
.github/workflows/lint.yml
vendored
|
|
@ -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: ""
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue