Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions .github/workflows/test_full_stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,34 @@ on:
- '*'
branches:
- main
pull_request:
branches:
- 'feature/**'
- 'fix/**'
- '!doc/**'
merge_group:

jobs:
molecule_full_stack:

lint_full:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v3

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt

- name: Lint code.
run: |
yamllint .
ansible-lint roles/

molecule_full_stack_every_os:
runs-on: ubuntu-latest
needs: lint_full

env:
COLLECTION_NAMESPACE: netways
Expand All @@ -25,8 +44,13 @@ jobs:
max-parallel: 1
matrix:
distro:
- ubuntu2004
- ubuntu2204
- centos7
- rockylinux8
- rockylinux9
- debian10
- debian11
scenario:
- elasticstack_default
release:
Expand Down
36 changes: 25 additions & 11 deletions .github/workflows/test_roles_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@
name: Test Collection Roles
on:
pull_request:
branches:
- main
- 'feature/**'
- 'fix/**'
- '!doc/**'
merge_group:

jobs:
molecule_pr:
lint_full:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v3

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt

- name: Lint code.
run: |
yamllint .
ansible-lint roles/
molecule_full_stack:
runs-on: ubuntu-latest
needs: lint_full

env:
COLLECTION_NAMESPACE: netways
Expand All @@ -22,12 +39,9 @@ jobs:
matrix:
distro:
- ubuntu2204
- rockylinux8
scenario:
- beats_default
- elasticsearch_default
- kibana_default
- logstash_default
- repos_default
- elasticstack_default
release:
- 7
- 8
Expand Down
2 changes: 1 addition & 1 deletion molecule/repos_oss/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
name:
- gpg-agent
update_cache: yes
when: ansible_os_family == "Debian" and ansible_distribution == "Ubuntu"
when: ansible_os_family == "Debian" and ansible_distribution == "Ubuntu"