File tree Expand file tree Collapse file tree 6 files changed +24
-152
lines changed Expand file tree Collapse file tree 6 files changed +24
-152
lines changed Original file line number Diff line number Diff line change 17
17
18
18
jobs :
19
19
20
- lint_full :
21
- runs-on : ubuntu-latest
22
- steps :
23
- - name : Check out the codebase.
24
- uses : actions/checkout@v3
25
-
26
- - name : Set up Python 3.
27
- uses : actions/setup-python@v4
28
- with :
29
- python-version : ' 3.x'
30
-
31
- - name : Install test dependencies.
32
- run : |
33
- python3 -m pip install --upgrade pip
34
- python3 -m pip install -r requirements-test.txt
35
-
36
- - name : Lint code.
37
- run : |
38
- yamllint .
39
- ansible-lint roles/
40
-
41
20
molecule_full_stack_every_os :
42
21
runs-on : ubuntu-latest
43
- needs : lint_full
44
22
45
23
env :
46
24
COLLECTION_NAMESPACE : netways
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Test Role beats
3
3
on :
4
+ workflow_run :
5
+ workflows :
6
+ - Test Linting
7
+ types :
8
+ - completed
4
9
workflow_dispatch :
5
10
inputs :
6
11
logLevel :
21
26
- ' roles/beats/**'
22
27
- ' .github/workflows/test_role_beats.yml'
23
28
- ' molecule/beats_**'
24
- - ' .config/ansible-lint.yml'
25
- - ' .yamllint'
26
29
pull_request :
27
30
branches :
28
31
- ' feature/**'
32
35
- ' roles/beats/**'
33
36
- ' .github/workflows/test_role_beats.yml'
34
37
- ' molecule/beats_**'
35
- - ' .config/ansible-lint.yml'
36
- - ' .yamllint'
37
38
38
39
jobs :
39
- lint_beats :
40
- runs-on : ubuntu-latest
41
- steps :
42
- - name : Check out the codebase.
43
- uses : actions/checkout@v3
44
-
45
- - name : Set up Python 3.
46
- uses : actions/setup-python@v4
47
- with :
48
- python-version : ' 3.x'
49
-
50
- - name : Install test dependencies.
51
- run : |
52
- python3 -m pip install --upgrade pip
53
- python3 -m pip install -r requirements-test.txt
54
-
55
- - name : Lint code.
56
- run : |
57
- yamllint roles/beats/
58
- ansible-lint roles/beats/
59
-
60
40
molecule_beats :
61
- needs : lint_beats
62
41
runs-on : ubuntu-latest
63
42
64
43
env :
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Test Role elasticsearch
3
3
on :
4
+ workflow_run :
5
+ workflows : [Test Linting]
6
+ types :
7
+ - completed
4
8
workflow_dispatch :
5
9
inputs :
6
10
logLevel :
21
25
- ' roles/elasticsearch/**'
22
26
- ' .github/workflows/test_role_elasticsearch.yml'
23
27
- ' molecule/elasticsearch_**'
24
- - ' .config/ansible-lint.yml'
25
- - ' .yamllint'
26
28
pull_request :
27
29
branches :
28
30
- ' feature/**'
32
34
- ' roles/elasticsearch/**'
33
35
- ' .github/workflows/test_role_elasticsearch.yml'
34
36
- ' molecule/elasticsearch_**'
35
- - ' .config/ansible-lint.yml'
36
- - ' .yamllint'
37
37
38
38
jobs :
39
- lint_elasticsearch :
40
- runs-on : ubuntu-latest
41
- steps :
42
- - name : Check out the codebase.
43
- uses : actions/checkout@v3
44
-
45
- - name : Set up Python 3.
46
- uses : actions/setup-python@v4
47
- with :
48
- python-version : ' 3.x'
49
-
50
- - name : Install test dependencies.
51
- run : |
52
- python3 -m pip install --upgrade pip
53
- python3 -m pip install -r requirements-test.txt
54
-
55
- - name : Lint code.
56
- run : |
57
- yamllint roles/elasticsearch/
58
- ansible-lint roles/elasticsearch/
59
-
60
39
molecule_elasticsearch :
61
- needs : lint_elasticsearch
62
40
runs-on : ubuntu-latest
63
41
64
42
env :
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Test Role Kibana
3
3
on :
4
+ workflow_run :
5
+ workflows :
6
+ - Test Linting
7
+ types :
8
+ - completed
4
9
workflow_dispatch :
5
10
inputs :
6
11
logLevel :
21
26
- ' roles/kibana/**'
22
27
- ' .github/workflows/test_role_kibana.yml'
23
28
- ' molecule/kibana_**'
24
- - ' .config/ansible-lint.yml'
25
- - ' .yamllint'
26
29
pull_request :
27
30
branches :
28
31
- ' feature/**'
32
35
- ' roles/kibana/**'
33
36
- ' .github/workflows/test_role_kibana.yml'
34
37
- ' molecule/kibana_**'
35
- - ' .config/ansible-lint.yml'
36
- - ' .yamllint'
37
38
38
39
jobs :
39
- lint_kibana :
40
- runs-on : ubuntu-latest
41
- steps :
42
- - name : Check out the codebase.
43
- uses : actions/checkout@v3
44
-
45
- - name : Set up Python 3.
46
- uses : actions/setup-python@v4
47
- with :
48
- python-version : ' 3.x'
49
-
50
- - name : Install test dependencies.
51
- run : |
52
- python3 -m pip install --upgrade pip
53
- python3 -m pip install -r requirements-test.txt
54
-
55
- - name : Lint code.
56
- run : |
57
- yamllint roles/kibana/
58
- ansible-lint roles/kibana/
59
-
60
40
molecule_kibana :
61
- needs : lint_kibana
62
41
runs-on : ubuntu-latest
63
42
64
43
env :
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Test Role Logstash
3
3
on :
4
+ workflow_run :
5
+ workflows :
6
+ - Test Linting
7
+ types :
8
+ - completed
4
9
workflow_dispatch :
5
10
inputs :
6
11
logLevel :
21
26
- ' roles/logstash/**'
22
27
- ' .github/workflows/test_role_logstash.yml'
23
28
- ' molecule/logstash_**'
24
- - ' .config/ansible-lint.yml'
25
- - ' .yamllint'
26
29
pull_request :
27
30
branches :
28
31
- ' feature/**'
32
35
- ' roles/logstash/**'
33
36
- ' .github/workflows/test_role_logstash.yml'
34
37
- ' molecule/logstash_**'
35
- - ' .config/ansible-lint.yml'
36
- - ' .yamllint'
37
38
38
39
jobs :
39
- lint_logstash :
40
- runs-on : ubuntu-latest
41
- steps :
42
- - name : Check out the codebase.
43
- uses : actions/checkout@v3
44
-
45
- - name : Set up Python 3.
46
- uses : actions/setup-python@v4
47
- with :
48
- python-version : ' 3.x'
49
-
50
- - name : Install test dependencies.
51
- run : |
52
- python3 -m pip install --upgrade pip
53
- python3 -m pip install -r requirements-test.txt
54
-
55
- - name : Lint code.
56
- run : |
57
- yamllint roles/logstash/
58
- ansible-lint roles/logstash/
59
-
60
40
molecule_logstash :
61
41
runs-on : ubuntu-latest
62
- needs : lint_logstash
63
42
64
43
env :
65
44
COLLECTION_NAMESPACE : netways
Original file line number Diff line number Diff line change 1
1
name : Test Role repos
2
2
on :
3
+ workflow_run :
4
+ workflows :
5
+ - Test Linting
6
+ types :
7
+ - completed
3
8
workflow_dispatch :
4
9
inputs :
5
10
logLevel :
20
25
- ' roles/repos/**'
21
26
- ' .github/workflows/test_role_repos.yml'
22
27
- ' molecule/repos_**'
23
- - ' .config/ansible-lint.yml'
24
- - ' .yamllint'
25
28
pull_request :
26
29
branches :
27
30
- ' feature/**'
31
34
- ' roles/repos/**'
32
35
- ' .github/workflows/test_role_repos.yml'
33
36
- ' molecule/repos_**'
34
- - ' .config/ansible-lint.yml'
35
- - ' .yamllint'
36
37
37
38
jobs :
38
- lint_repos :
39
- runs-on : ubuntu-latest
40
- steps :
41
- - name : Check out the codebase.
42
- uses : actions/checkout@v3
43
-
44
- - name : Set up Python 3.
45
- uses : actions/setup-python@v4
46
- with :
47
- python-version : ' 3.x'
48
-
49
- - name : Install test dependencies.
50
- run : |
51
- python3 -m pip install --upgrade pip
52
- python3 -m pip install -r requirements-test.txt
53
-
54
- - name : Lint code.
55
- run : |
56
- yamllint roles/repos/
57
- ansible-lint roles/repos/
58
-
59
39
molecule_repos :
60
- needs : lint_repos
61
40
runs-on : ubuntu-latest
62
41
63
42
env :
You can’t perform that action at this time.
0 commit comments