feat: added ansible-lint to pre-commit
This commit is contained in:
parent
8fbaaa94f6
commit
602c8fe964
|
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
#
|
||||||
|
# Ansible managed
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set update schedule for GitHub Actions
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
# Check for updates to GitHub Actions every weekday
|
||||||
|
interval: "daily"
|
||||||
|
assignees:
|
||||||
|
- "mullholland"
|
||||||
|
|
@ -22,3 +22,11 @@ repos:
|
||||||
- id: ansible_role_find_undefined_handlers
|
- id: ansible_role_find_undefined_handlers
|
||||||
- id: ansible_role_find_unquoted_values
|
- id: ansible_role_find_unquoted_values
|
||||||
- id: ansible_role_find_horizontal_when
|
- id: ansible_role_find_horizontal_when
|
||||||
|
|
||||||
|
- repo: https://github.com/ansible-community/ansible-lint.git
|
||||||
|
rev: v6.17.0 # put latest release tag from https://github.com/ansible-community/ansible-lint/releases/
|
||||||
|
hooks:
|
||||||
|
- id: ansible-lint
|
||||||
|
files: \.(yaml|yml)$
|
||||||
|
verbose: true
|
||||||
|
args: ["-p", "./"]
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ molecule:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
galaxy:
|
# galaxy:
|
||||||
script:
|
# script:
|
||||||
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ galaxy_namespace }} ${CI_PROJECT_NAME}
|
# - ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ galaxy_namespace }} ${CI_PROJECT_NAME}
|
||||||
rules:
|
# rules:
|
||||||
- if: $CI_COMMIT_TAG != null
|
# - if: $CI_COMMIT_TAG != null
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,8 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: go-semantic-release/action@v1
|
- uses: go-semantic-release/action@v1
|
||||||
id: semrel
|
id: semrel
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@master"
|
- uses: "actions/checkout@master"
|
||||||
- name: "TODO to Issue"
|
- name: "TODO to Issue"
|
||||||
uses: "alstr/todo-to-issue-action@v4.1"
|
uses: "alstr/todo-to-issue-action@v4.10"
|
||||||
id: "todo"
|
id: "todo"
|
||||||
with:
|
with:
|
||||||
TOKEN: ${% raw %}{{ secrets.GITHUB_TOKEN }}{% endraw %}
|
TOKEN: ${% raw %}{{ secrets.GITHUB_TOKEN }}{% endraw %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue