mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
making sure I don't leave a .only in the tests
This commit is contained in:
3
.github/workflows/studio-test.yml
vendored
3
.github/workflows/studio-test.yml
vendored
@@ -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
14
bin/check-for-only-tests.sh
Executable 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
|
||||
Reference in New Issue
Block a user