Skip to content

chore: Add github workflow checking for focused unit tests #1

chore: Add github workflow checking for focused unit tests

chore: Add github workflow checking for focused unit tests #1

Workflow file for this run

name: Check for Focused Tests
on:
push: # This triggers the workflow on push to any branch
branches:
- '**' # This matches all branches
jobs:
check-focused-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check for fdescribe and fit in projects/hslayers/test
run: |
# Fail the job if any instance of fdescribe( or fit( is found in the specific directory
if grep -r 'fdescribe(' ./projects/hslayers/test || grep -r 'fit(' ./projects/hslayers/test; then
echo "Error: Found focused tests (fdescribe or fit). Please remove them."
exit 1
fi