mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 06:14:13 +00:00
refactor(ci): move collection dependencies to where ansible knows to pick it up
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
e37f7fe8d7
commit
45cd0a52c5
2 changed files with 7 additions and 17 deletions
20
.github/workflows/ansible-lint.yml
vendored
20
.github/workflows/ansible-lint.yml
vendored
|
@ -1,27 +1,13 @@
|
||||||
---
|
---
|
||||||
name: Ansible Lint # feel free to pick your own name
|
name: Ansible Lint
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install community.crypto
|
|
||||||
uses: nick-invision/retry@v2
|
|
||||||
with:
|
|
||||||
timeout_minutes: 3
|
|
||||||
max_attempts: 3
|
|
||||||
command: ansible-galaxy collection install 'community.crypto' -p /github/home/.ansible/collections/
|
|
||||||
|
|
||||||
- name: Install community.general
|
|
||||||
uses: nick-invision/retry@v2
|
|
||||||
with:
|
|
||||||
timeout_minutes: 3
|
|
||||||
max_attempts: 3
|
|
||||||
command: ansible-galaxy collection install 'community.general' -p /github/home/.ansible/collections/
|
|
||||||
|
|
||||||
- name: Lint roles
|
- name: Lint roles
|
||||||
uses: ansible/ansible-lint-action@main
|
uses: ansible/ansible-lint-action@main
|
||||||
|
|
4
requirements.yml
Normal file
4
requirements.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
collections:
|
||||||
|
- community.general
|
||||||
|
- community.crypto
|
Loading…
Reference in a new issue