From ac326e48d91a81980c2f7c0def59a3f5b996a9de Mon Sep 17 00:00:00 2001 From: kogeler <25884155+kogeler@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:18:38 +0300 Subject: [PATCH] run GitHub workflow on all branches (#77) --- .github/workflows/branch-main.yml | 2 +- .github/workflows/pr-nginx-exporter.yml | 7 +++++++ .github/workflows/pr-nginx.yml | 7 +++++++ .github/workflows/pr-node-backup.yml | 7 +++++++ .github/workflows/pr-node.yml | 7 +++++++ .github/workflows/pr-secure-apt.yml | 7 +++++++ .github/workflows/pr-state-exporter.yml | 7 +++++++ .github/workflows/pr-ws-health-exporter.yml | 7 +++++++ 8 files changed, 50 insertions(+), 1 deletion(-) diff --git a/.github/workflows/branch-main.yml b/.github/workflows/branch-main.yml index 246e7cc..53ffad2 100644 --- a/.github/workflows/branch-main.yml +++ b/.github/workflows/branch-main.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - role-names: [node, ws_health_exporter] + role-names: [node, ws_health_exporter, nginx, node_backup ] molecule-drivers: [docker] # We test the latest version and minimum supported version ansible-versions: [8.0.0, 9.0.1] diff --git a/.github/workflows/pr-nginx-exporter.yml b/.github/workflows/pr-nginx-exporter.yml index 91951ab..e013da7 100644 --- a/.github/workflows/pr-nginx-exporter.yml +++ b/.github/workflows/pr-nginx-exporter.yml @@ -5,6 +5,13 @@ on: paths: - roles/nginx_exporter/** - .github/** + push: + paths: + - roles/nginx_exporter/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: diff --git a/.github/workflows/pr-nginx.yml b/.github/workflows/pr-nginx.yml index b885fa1..290c45b 100644 --- a/.github/workflows/pr-nginx.yml +++ b/.github/workflows/pr-nginx.yml @@ -5,6 +5,13 @@ on: paths: - roles/nginx/** - .github/** + push: + paths: + - roles/nginx/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: diff --git a/.github/workflows/pr-node-backup.yml b/.github/workflows/pr-node-backup.yml index 2dc63f5..10bb02f 100644 --- a/.github/workflows/pr-node-backup.yml +++ b/.github/workflows/pr-node-backup.yml @@ -5,6 +5,13 @@ on: paths: - roles/node_backup/** - .github/** + push: + paths: + - roles/node_backup/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: diff --git a/.github/workflows/pr-node.yml b/.github/workflows/pr-node.yml index a19cd12..e319b59 100644 --- a/.github/workflows/pr-node.yml +++ b/.github/workflows/pr-node.yml @@ -5,6 +5,13 @@ on: paths: - roles/node/** - .github/** + push: + paths: + - roles/node/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: diff --git a/.github/workflows/pr-secure-apt.yml b/.github/workflows/pr-secure-apt.yml index 6cbdbf9..edb9af7 100644 --- a/.github/workflows/pr-secure-apt.yml +++ b/.github/workflows/pr-secure-apt.yml @@ -5,6 +5,13 @@ on: paths: - roles/secure_apt/** - .github/** + push: + paths: + - roles/secure_apt/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: diff --git a/.github/workflows/pr-state-exporter.yml b/.github/workflows/pr-state-exporter.yml index 5244834..d4e92fe 100644 --- a/.github/workflows/pr-state-exporter.yml +++ b/.github/workflows/pr-state-exporter.yml @@ -5,6 +5,13 @@ on: paths: - roles/state_exporter/** - .github/** + push: + paths: + - roles/state_exporter/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: diff --git a/.github/workflows/pr-ws-health-exporter.yml b/.github/workflows/pr-ws-health-exporter.yml index 5bec99d..c1a1356 100644 --- a/.github/workflows/pr-ws-health-exporter.yml +++ b/.github/workflows/pr-ws-health-exporter.yml @@ -5,6 +5,13 @@ on: paths: - roles/ws_health_exporter/** - .github/** + push: + paths: + - roles/ws_health_exporter/** + - .github/** + branches: + - '!main' + - '**' jobs: run-molecule-tests: