Skip to content

Commit

Permalink
making sure I don't leave a .only in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rathboma committed Dec 17, 2021
1 parent bb7a139 commit 629607c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/studio-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 14 additions & 0 deletions bin/check-for-only-tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 629607c

Please sign in to comment.