From d4e935484fd11e29449234743d5776ed2f178c91 Mon Sep 17 00:00:00 2001 From: "A. F. Dudley" Date: Sat, 24 Jan 2026 15:42:50 -0500 Subject: [PATCH] Limit test workflow PR triggers to main branch only Previously these workflows ran on PRs to any branch. Now: - PRs to main: run all tests (full CI gate) - Pushes to other branches: use existing path filtering This reduces CI load on feature branch PRs while maintaining full test coverage for PRs targeting main. Affected workflows: - test-k8s-deploy.yml - test-k8s-deployment-control.yml - test-webapp.yml - test-deploy.yml Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/test-deploy.yml | 3 ++- .gitea/workflows/test-k8s-deploy.yml | 3 ++- .gitea/workflows/test-k8s-deployment-control.yml | 3 ++- .gitea/workflows/test-webapp.yml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test-deploy.yml b/.gitea/workflows/test-deploy.yml index 2ea72c08..b0d5194d 100644 --- a/.gitea/workflows/test-deploy.yml +++ b/.gitea/workflows/test-deploy.yml @@ -2,7 +2,8 @@ name: Deploy Test on: pull_request: - branches: '*' + branches: + - main push: branches: - main diff --git a/.gitea/workflows/test-k8s-deploy.yml b/.gitea/workflows/test-k8s-deploy.yml index a9964b72..bbd1d508 100644 --- a/.gitea/workflows/test-k8s-deploy.yml +++ b/.gitea/workflows/test-k8s-deploy.yml @@ -2,7 +2,8 @@ name: K8s Deploy Test on: pull_request: - branches: '*' + branches: + - main push: branches: '*' paths: diff --git a/.gitea/workflows/test-k8s-deployment-control.yml b/.gitea/workflows/test-k8s-deployment-control.yml index 9ab2526d..3784451b 100644 --- a/.gitea/workflows/test-k8s-deployment-control.yml +++ b/.gitea/workflows/test-k8s-deployment-control.yml @@ -2,7 +2,8 @@ name: K8s Deployment Control Test on: pull_request: - branches: '*' + branches: + - main push: branches: '*' paths: diff --git a/.gitea/workflows/test-webapp.yml b/.gitea/workflows/test-webapp.yml index 99c5138f..8a3a60f9 100644 --- a/.gitea/workflows/test-webapp.yml +++ b/.gitea/workflows/test-webapp.yml @@ -2,7 +2,8 @@ name: Webapp Test on: pull_request: - branches: '*' + branches: + - main push: branches: - main