From eb0bdd36b0b19e6fca7b9bc5680d3d735567b1a3 Mon Sep 17 00:00:00 2001 From: Michael Shen Date: Sun, 8 Jan 2023 17:44:15 -0500 Subject: [PATCH] Only run CI on main branch/PRs to main Signed-off-by: Michael Shen --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4c8d8b..3c9cc1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: CI on: + pull_request: + branches: + - 'main' push: + branches: + - 'main' paths: - '**.go' - 'go.mod'