Skip to content

Commit 0510438

Browse files
committed
Remove linting jobs and schedule workflows after general linting workflow
1 parent 962df93 commit 0510438

File tree

6 files changed

+24
-152
lines changed

6 files changed

+24
-152
lines changed

.github/workflows/test_full_stack.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,8 @@ on:
1717

1818
jobs:
1919

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-
4120
molecule_full_stack_every_os:
4221
runs-on: ubuntu-latest
43-
needs: lint_full
4422

4523
env:
4624
COLLECTION_NAMESPACE: netways

.github/workflows/test_role_beats.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
name: Test Role beats
33
on:
4+
workflow_run:
5+
workflows:
6+
- Test Linting
7+
types:
8+
- completed
49
workflow_dispatch:
510
inputs:
611
logLevel:
@@ -21,8 +26,6 @@ on:
2126
- 'roles/beats/**'
2227
- '.github/workflows/test_role_beats.yml'
2328
- 'molecule/beats_**'
24-
- '.config/ansible-lint.yml'
25-
- '.yamllint'
2629
pull_request:
2730
branches:
2831
- 'feature/**'
@@ -32,33 +35,9 @@ on:
3235
- 'roles/beats/**'
3336
- '.github/workflows/test_role_beats.yml'
3437
- 'molecule/beats_**'
35-
- '.config/ansible-lint.yml'
36-
- '.yamllint'
3738

3839
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-
6040
molecule_beats:
61-
needs: lint_beats
6241
runs-on: ubuntu-latest
6342

6443
env:

.github/workflows/test_role_elasticsearch.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
name: Test Role elasticsearch
33
on:
4+
workflow_run:
5+
workflows: [Test Linting]
6+
types:
7+
- completed
48
workflow_dispatch:
59
inputs:
610
logLevel:
@@ -21,8 +25,6 @@ on:
2125
- 'roles/elasticsearch/**'
2226
- '.github/workflows/test_role_elasticsearch.yml'
2327
- 'molecule/elasticsearch_**'
24-
- '.config/ansible-lint.yml'
25-
- '.yamllint'
2628
pull_request:
2729
branches:
2830
- 'feature/**'
@@ -32,33 +34,9 @@ on:
3234
- 'roles/elasticsearch/**'
3335
- '.github/workflows/test_role_elasticsearch.yml'
3436
- 'molecule/elasticsearch_**'
35-
- '.config/ansible-lint.yml'
36-
- '.yamllint'
3737

3838
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-
6039
molecule_elasticsearch:
61-
needs: lint_elasticsearch
6240
runs-on: ubuntu-latest
6341

6442
env:

.github/workflows/test_role_kibana.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
name: Test Role Kibana
33
on:
4+
workflow_run:
5+
workflows:
6+
- Test Linting
7+
types:
8+
- completed
49
workflow_dispatch:
510
inputs:
611
logLevel:
@@ -21,8 +26,6 @@ on:
2126
- 'roles/kibana/**'
2227
- '.github/workflows/test_role_kibana.yml'
2328
- 'molecule/kibana_**'
24-
- '.config/ansible-lint.yml'
25-
- '.yamllint'
2629
pull_request:
2730
branches:
2831
- 'feature/**'
@@ -32,33 +35,9 @@ on:
3235
- 'roles/kibana/**'
3336
- '.github/workflows/test_role_kibana.yml'
3437
- 'molecule/kibana_**'
35-
- '.config/ansible-lint.yml'
36-
- '.yamllint'
3738

3839
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-
6040
molecule_kibana:
61-
needs: lint_kibana
6241
runs-on: ubuntu-latest
6342

6443
env:

.github/workflows/test_role_logstash.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
name: Test Role Logstash
33
on:
4+
workflow_run:
5+
workflows:
6+
- Test Linting
7+
types:
8+
- completed
49
workflow_dispatch:
510
inputs:
611
logLevel:
@@ -21,8 +26,6 @@ on:
2126
- 'roles/logstash/**'
2227
- '.github/workflows/test_role_logstash.yml'
2328
- 'molecule/logstash_**'
24-
- '.config/ansible-lint.yml'
25-
- '.yamllint'
2629
pull_request:
2730
branches:
2831
- 'feature/**'
@@ -32,34 +35,10 @@ on:
3235
- 'roles/logstash/**'
3336
- '.github/workflows/test_role_logstash.yml'
3437
- 'molecule/logstash_**'
35-
- '.config/ansible-lint.yml'
36-
- '.yamllint'
3738

3839
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-
6040
molecule_logstash:
6141
runs-on: ubuntu-latest
62-
needs: lint_logstash
6342

6443
env:
6544
COLLECTION_NAMESPACE: netways

.github/workflows/test_role_repos.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Test Role repos
22
on:
3+
workflow_run:
4+
workflows:
5+
- Test Linting
6+
types:
7+
- completed
38
workflow_dispatch:
49
inputs:
510
logLevel:
@@ -20,8 +25,6 @@ on:
2025
- 'roles/repos/**'
2126
- '.github/workflows/test_role_repos.yml'
2227
- 'molecule/repos_**'
23-
- '.config/ansible-lint.yml'
24-
- '.yamllint'
2528
pull_request:
2629
branches:
2730
- 'feature/**'
@@ -31,33 +34,9 @@ on:
3134
- 'roles/repos/**'
3235
- '.github/workflows/test_role_repos.yml'
3336
- 'molecule/repos_**'
34-
- '.config/ansible-lint.yml'
35-
- '.yamllint'
3637

3738
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-
5939
molecule_repos:
60-
needs: lint_repos
6140
runs-on: ubuntu-latest
6241

6342
env:

0 commit comments

Comments
 (0)