From 1c358c524012f10187e304d0a888e1c5926a51d8 Mon Sep 17 00:00:00 2001 From: Ihor Kalnytskyi Date: Sun, 17 Jan 2021 17:39:10 +0200 Subject: [PATCH] Do not run tests twice for pull requests In order to achieve that we're going to run tests only when commits are pushed to `master` branch (i.e. pull requests get merged) or when pull requests are created and the target branch is `master`. --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de0f1fa..2767ed3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,10 @@ name: test on: - - push - - pull_request + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: lint: