run our CI tests periodically (#634)
* allow multiple instances for os vm tests Signed-off-by: Martin Schurz <[email protected]> * add scheduled trigger to all test actions Signed-off-by: Martin Schurz <[email protected]> * use different scenario names Signed-off-by: Martin Schurz <[email protected]> * use different scenario names Signed-off-by: Martin Schurz <[email protected]> * use different scenario names Signed-off-by: Martin Schurz <[email protected]> * use username to create uniqe vms Signed-off-by: Martin Schurz <[email protected]> * use compatible name Signed-off-by: Martin Schurz <[email protected]> * add explaination Signed-off-by: Martin Schurz <[email protected]> --------- Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
1 parent
8d667aa069
commit
9b32aca0ca
7 files changed
+16
-1
No files matched your search
@@ -15,6 +15,8 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- 'roles/mysql_hardening/**'
|
- 'roles/mysql_hardening/**'
|
||||||
- 'molecule/mysql_hardening/**'
|
- 'molecule/mysql_hardening/**'
|
||||||
- '.github/workflows/mysql_hardening.yml'
|
- '.github/workflows/mysql_hardening.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 0'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: >-
|
group: >-
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- 'roles/nginx_hardening/**'
|
- 'roles/nginx_hardening/**'
|
||||||
- 'molecule/nginx_hardening/**'
|
- 'molecule/nginx_hardening/**'
|
||||||
- '.github/workflows/nginx_hardening.yml'
|
- '.github/workflows/nginx_hardening.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 1'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: >-
|
group: >-
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- 'roles/os_hardening/**'
|
- 'roles/os_hardening/**'
|
||||||
- 'molecule/os_hardening/**'
|
- 'molecule/os_hardening/**'
|
||||||
- '.github/workflows/os_hardening.yml'
|
- '.github/workflows/os_hardening.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 3'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: >-
|
group: >-
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- 'roles/os_hardening/**'
|
- 'roles/os_hardening/**'
|
||||||
- 'molecule/os_hardening_vm/**'
|
- 'molecule/os_hardening_vm/**'
|
||||||
- '.github/workflows/os_hardening_vm.yml'
|
- '.github/workflows/os_hardening_vm.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 2'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: >-
|
group: >-
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- 'roles/ssh_hardening/**'
|
- 'roles/ssh_hardening/**'
|
||||||
- 'molecule/ssh_hardening/**'
|
- 'molecule/ssh_hardening/**'
|
||||||
- '.github/workflows/ssh_hardening.yml'
|
- '.github/workflows/ssh_hardening.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 5'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: >-
|
group: >-
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- 'roles/ssh_hardening/**'
|
- 'roles/ssh_hardening/**'
|
||||||
- 'molecule/ssh_hardening_custom_tests/**'
|
- 'molecule/ssh_hardening_custom_tests/**'
|
||||||
- '.github/workflows/ssh_hardening_custom_tests.yml'
|
- '.github/workflows/ssh_hardening_custom_tests.yml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 4'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: >-
|
group: >-
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ driver:
|
|||||||
provider:
|
provider:
|
||||||
name: libvirt
|
name: libvirt
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
# we need to name every instance differntly to start multiple VMs on the same host (parallelization)
|
||||||
|
# since we also need to use different OS users to run the tests because of how molecule operates,
|
||||||
|
# the VM names must be predictable by OS user (to clean up canceled runs)
|
||||||
|
- name: "${USER}"
|
||||||
box: "generic/${MOLECULE_DISTRO}"
|
box: "generic/${MOLECULE_DISTRO}"
|
||||||
memory: 1024
|
memory: 1024
|
||||||
cpus: 2
|
cpus: 2
|
||||||
|
|||||||
Reference in new issue
Block a user