From e053ca91b131755137974717df6f01f3fa1dc536 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Sun, 10 Mar 2024 12:46:57 +0100 Subject: [PATCH] Only run Go tests for push on master. Add a branch filter to only run tests for "push" on master. This avoids double-running tests on PRs. Signed-off-by: SuperQ --- .github/workflows/go.test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.test.yml b/.github/workflows/go.test.yml index b62c6ca13..c9b6be5ad 100644 --- a/.github/workflows/go.test.yml +++ b/.github/workflows/go.test.yml @@ -1,5 +1,8 @@ name: Go Tests -on: [push, pull_request] +on: + pull_request: + push: + branches: [master] permissions: contents: read