generated from 39services/ansible_collection_39systems.template
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.1 KB
/
ansible-role-idea.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
# This workflow requires a GALAXY_API_KEY secret present in the GitHub
# repository or organization.
name: Molecule Tests idea
"on":
push:
branches:
- main
paths:
- "roles/idea/**"
workflow_dispatch:
jobs:
molecule:
runs-on: ubuntu-20.04
name: Molecule test "idea" role
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Free Disk Space."
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies.
working-directory: roles/idea
run: pip3 install -r requirements.txt
- name: Install Ansible dependencies.
run: ansible-galaxy install -r requirements.yml
- name: Install Ansible dependencies specific to role.
working-directory: roles/idea
run: ansible-galaxy install -r requirements.yml
- name: Run molecule
working-directory: roles/idea
run: "molecule test"
...