Files
ansible-role-common/.woodpecker/lint.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2023-10-18 22:19:02 +13:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
submodule_update_remote: true
when:
event: [ push, manual ]
2023-10-05 16:41:38 +13:00
steps:
ansible-lint:
group: test
name: "Lint: Ansible-lint"
image: guisea/ansible-molecule
2023-10-08 22:14:19 +13:00
environment:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
2023-10-06 07:04:43 +13:00
commands:
2023-10-16 21:42:53 +13:00
- ansible-lint -c ".ansible-lint"
2023-10-05 16:41:38 +13:00
when:
2023-10-16 21:42:53 +13:00
event: [ push, manual ]
2023-10-05 16:41:38 +13:00
yamllint:
group: test
name: "Lint: Yamllint"
image: guisea/ansible-molecule
2023-10-06 07:04:43 +13:00
commands:
2023-10-08 22:14:19 +13:00
- yamllint -f colored .
2023-10-05 16:41:38 +13:00
when:
2023-10-16 21:42:53 +13:00
event: [ push, manual ]
2023-10-18 22:19:02 +13:00
ntfy:
image: codeberg.org/l-x/woodpecker-ntfy
settings:
url: https://ntfy.cybercinch.nz/ci-status
2023-10-18 22:34:00 +13:00
title: "Lint failed for ${CI_REPO_NAME}"
2023-10-18 22:19:02 +13:00
priority: urgent
icon: https://woodpecker-ci.org/img/logo.svg
tags: robot,warning,rotating_light,${CI_BUILD_EVENT},${CI_REPO_NAME}
message: >
📝 Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH}:
${CI_COMMIT_MESSAGE}
when:
event: [ push, manual ]
status: [ failure ]