From c62c915fdc747ad28f49b14ba3292a1abcdd3cec Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 12 Oct 2022 21:12:16 +1100 Subject: [PATCH] Run tests on approval --- .github/workflows/pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index be913c5a3..caeba0d10 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,6 +1,8 @@ name: PR Checks on: pull_request: + pull_request_review: + types: [ submitted ] jobs: check_branch_name: @@ -18,7 +20,7 @@ jobs: test: name: Run Go Tests runs-on: ${{ matrix.os }} - needs: check_branch_name + if: github.event.review.state == 'approved' strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ]