forked from LemmyNet/lemmy-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.woodpecker.yml
30 lines (28 loc) · 904 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
steps:
prettier_markdown_check:
image: tmknom/prettier
commands:
- prettier -c "*.md" "*.yml" "examples/vars.yml"
when:
- event: pull_request
check_ansible_format:
image: alpine:3
commands:
- export PATH=/root/.local/bin:$${PATH}
- apk add pipx
- pipx install --include-deps ansible
- ansible-playbook lemmy.yml --syntax-check
- ansible-playbook lemmy-almalinux.yml --syntax-check
- ansible-playbook uninstall.yml --syntax-check
when:
- event: pull_request
ansible_lint:
image: alpine:3
commands:
- export PATH=/root/.local/bin:$${PATH}
- apk add pipx
- pipx install --include-deps ansible
- pipx inject --include-deps ansible ansible-lint
- ansible-lint --warn-list experimental lemmy.yml lemmy-almalinux.yml uninstall.yml examples/vars.yml
when:
- event: pull_request