From 7887100a5c5c800866d28cde891422906aa7112f Mon Sep 17 00:00:00 2001 From: George Blue Date: Tue, 19 Mar 2024 09:48:32 +0000 Subject: [PATCH] chore: add GitHub action PR check for focused tests (#1103) Sometimes we accidentally commit a change which focuses a test. This check should highlight the problem before we merge a PR. [#187240999](https://www.pivotaltracker.com/story/show/187240999) --- .github/workflows/focused-test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/focused-test.yml diff --git a/.github/workflows/focused-test.yml b/.github/workflows/focused-test.yml new file mode 100644 index 00000000..4eb3bb4b --- /dev/null +++ b/.github/workflows/focused-test.yml @@ -0,0 +1,14 @@ +name: Focused Test + +on: [pull_request] + +jobs: + focused-test: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v5 + with: + go-version: '1.22.1' + - uses: actions/checkout@v4 + - run: go run github.com/onsi/ginkgo/v2/ginkgo unfocus && test -z "$(git status -s)" +