making sure I don't leave a .only in the tests

This commit is contained in:
Matthew Rathbone
2021-12-17 14:19:37 -06:00
parent bb7a1394fc
commit 629607c95f
2 changed files with 17 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ jobs:
- name: Lint
run: yarn workspace beekeeper-studio run lint
- name: Check for bad files
run: bin/check-for-only-tests.sh
- name: Unit Tests
run: yarn workspace beekeeper-studio run test:unit --ci --silent

14
bin/check-for-only-tests.sh Executable file
View File

@@ -0,0 +1,14 @@
#! /bin/bash
git grep -a "\.only" apps/studio/tests/
STATUS=$?
if [[ $STATUS -eq 0 ]]
then
echo "Found tests with .only still there"
exit 1;
else
echo "tests look good"
exit 0
fi