Add a ginkgo focus check linter #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checking for focused specs | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.go' | |
jobs: | |
check-focus-target: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Running the focus check script | |
run: | | |
grep -ErnI --include="*.go" 'FIt|FDescribe|FContext|FWhen|FEntry|FDescribeTable' ./hosted && { echo "There are focused specs, please remove them."; exit 1; } || { echo "No focused specs found."; exit 0; } |