From fb640c5c8cbc348fc718596fe0d8350777e7def9 Mon Sep 17 00:00:00 2001 From: Din Music Date: Thu, 13 Apr 2023 18:38:08 +0200 Subject: [PATCH 1/2] Prevent tests from running twice on PR --- .github/workflows/go-test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 3ebb7bc5..32c87709 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -1,6 +1,12 @@ name: go test -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: test: From fb405c867923f09733bf310f62c165cf2ad1c8e4 Mon Sep 17 00:00:00 2001 From: Din Music Date: Thu, 13 Apr 2023 18:42:48 +0200 Subject: [PATCH 2/2] Fix target branch name --- .github/workflows/go-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 32c87709..dd64f51f 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -3,10 +3,10 @@ name: go test on: push: branches: - - main + - master pull_request: branches: - - main + - master jobs: test: