Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Test installation assistant workflows #35

Merged
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
62 changes: 62 additions & 0 deletions .github/workflows/Test_installation_assistant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
run-name: Test installation assistant - System ${{ inputs.SYSTEM }} - Launched by @${{ github.actor }}
name: Test installation assistant

on:
pull_request:
paths:
- 'cert_tool/**'
- 'common_functions/**'
- 'config/**'
- 'install_functions/**'
- 'passwords_tool/**'
- 'tests/**'
workflow_dispatch:
inputs:
REPOSITORY:
description: 'Repository environment'
required: true
default: 'pre-release'
type: choice
options:
- staging
- pre-release
AUTOMATION_REFERENCE:
description: 'wazuh-automation reference'
required: true
default: 'v4.10.0'
SYSTEM:
description: 'Operating System'
required: true
default: 'CentOS 8'
type: choice
options:
- CentOS 7
- CentOS 8
- Amazon Linux 2
- Ubuntu 16
- Ubuntu 18
- Ubuntu 20
- Ubuntu 22
- RHEL7
- RHEL8
DEBUG:
description: 'Debug mode'
required: true
default: false
type: boolean
DESTROY:
description: 'Destroy instances after run'
required: true
default: true
type: boolean

env:
LABEL: ubuntu-latest

jobs:
initialize-environment:
runs-on: $LABEL

steps:
- name: Set up Git
uses: actions/checkout@v3
47 changes: 47 additions & 0 deletions .github/workflows/Test_installation_assistant_distributed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
run-name: (Distributed) Test installation assistant - Launched by @${{ github.actor }}
name: (Distributed) Test installation assistant

on:
pull_request:
paths:
- 'cert_tool/**'
- 'common_functions/**'
- 'config/**'
- 'install_functions/**'
- 'passwords_tool/**'
- 'tests/**'
workflow_dispatch:
inputs:
REPOSITORY:
description: 'Repository environment'
required: true
default: 'pre-release'
type: choice
options:
- staging
- pre-release
AUTOMATION_REFERENCE:
description: 'wazuh-automation reference'
required: true
default: 'v4.10.0'
DEBUG:
description: 'Debug mode'
required: true
default: false
type: boolean
DESTROY:
description: 'Destroy instances after run'
required: true
default: true
type: boolean

env:
LABEL: ubuntu-latest

jobs:
initialize-environment:
runs-on: $LABEL

steps:
- name: Set up Git
uses: actions/checkout@v3
84 changes: 84 additions & 0 deletions .github/workflows/Test_installation_assistant_tier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
run-name: (Tier) Test installation assistant - Launched by @${{ github.actor }}
name: (Tier) Test installation assistant

on:
workflow_dispatch:
inputs:
REPOSITORY:
description: 'Repository environment'
required: true
default: 'pre-release'
type: choice
options:
- staging
- pre-release
AUTOMATION_REFERENCE:
description: 'wazuh-automation reference'
required: true
default: 'v4.10.0'
CentOS_7:
description: 'CentOS 7'
required: true
default: false
type: boolean
CentOS_8:
description: 'CentOS 8'
required: true
default: true
type: boolean
Amazon_Linux_2:
description: 'Amazon Linux 2'
required: true
default: false
type: boolean
Ubuntu_16:
description: 'Ubuntu 16'
required: true
default: false
type: boolean
Ubuntu_18:
description: 'Ubuntu 18'
required: true
default: false
type: boolean
Ubuntu_20:
description: 'Ubuntu 20'
required: true
default: false
type: boolean
Ubuntu_22:
description: 'Ubuntu 22'
required: true
default: false
type: boolean
RHEL_7:
description: 'RHEL 7'
required: true
default: false
type: boolean
RHEL_8:
description: 'RHEL 8'
required: true
default: false
type: boolean
DEBUG:
description: 'Debug mode'
required: true
default: false
type: boolean
DESTROY:
description: 'Destroy instances after run'
required: true
default: true
type: boolean

env:
LABEL: ubuntu-latest

jobs:
launch-tests:
runs-on: $LABEL

steps:
- name: Set up Git
uses: actions/checkout@v3