From db24646e7010769a7c0c8f8564258b2b28722d99 Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Thu, 17 Jul 2025 15:18:31 -0400 Subject: [PATCH] Run Lint and Tests on `push` to `trunk` branch This change causes the "Lint" and "Unit and Integration Tests" workflows to only run on `push` events on the default branch (`trunk`). This should avoid running redundant set of jobs on pull requests. --- .github/workflows/go.yml | 6 +++++- .github/workflows/lint.yml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9b22701a7..7772b3814 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,9 @@ name: Unit and Integration Tests -on: [push, pull_request] +on: + push: + branches: + - trunk + pull_request: permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 866dc3a2d..0b5d18882 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,8 @@ name: Lint on: push: + branches: + - trunk paths: - "**.go" - go.mod