Skip to content

Commit

Permalink
chore: add GitHub action PR check for focused tests
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
blgm authored and zucchinidev committed Mar 19, 2024
1 parent 0ac6908 commit 5fac8fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/focused-test.yml
Original file line number Diff line number Diff line change
@@ -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)"

0 comments on commit 5fac8fc

Please sign in to comment.