Skip to content

Commit

Permalink
Merge pull request #35 from wazuh/enhancement/20-test-installation-as…
Browse files Browse the repository at this point in the history
…sistant-workflow-addition

Added Test installation assistant workflows
  • Loading branch information
c-bordon authored Aug 26, 2024
2 parents 8dc9c1a + a935173 commit 1adea27
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 0 deletions.
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

0 comments on commit 1adea27

Please sign in to comment.