You've already forked ansible-role-auth-duo
Add CI
This commit is contained in:
17
.woodpecker/lint.yml
Normal file
17
.woodpecker/lint.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
steps:
|
||||||
|
ansible-lint:
|
||||||
|
group: test
|
||||||
|
name: "Lint: Ansible-lint"
|
||||||
|
image: guisea/ansible-molecule
|
||||||
|
commands:
|
||||||
|
- ansible-lint -c ".ansible-lint"
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
yamllint:
|
||||||
|
group: test
|
||||||
|
name: "Lint: Yamllint"
|
||||||
|
image: guisea/ansible-molecule
|
||||||
|
commands:
|
||||||
|
- yamllint .
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
21
.woodpecker/test.yml
Normal file
21
.woodpecker/test.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
matrix:
|
||||||
|
MOLECULE_DISTRO:
|
||||||
|
- centos7
|
||||||
|
- almalinux8
|
||||||
|
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
name: Test on ${MOLECULE_DISTRO}
|
||||||
|
image: guisea/ansible-molecule
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
|
||||||
|
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- molecule test --all
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
Reference in New Issue
Block a user