diff --git a/.github/workflows/studio-test.yml b/.github/workflows/studio-test.yml index e55860bee..fea95d260 100644 --- a/.github/workflows/studio-test.yml +++ b/.github/workflows/studio-test.yml @@ -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 diff --git a/bin/check-for-only-tests.sh b/bin/check-for-only-tests.sh new file mode 100755 index 000000000..bf1644bcb --- /dev/null +++ b/bin/check-for-only-tests.sh @@ -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