svelte-check

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-11 09:33:02 +02:00
parent d422f6b4fd
commit c0b9c1d2f0
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 10 additions and 9 deletions

View File

@ -36,8 +36,9 @@ jobs:
- name: Installing... - name: Installing...
run: node common/scripts/install-run-rush.js install run: node common/scripts/install-run-rush.js install
- name: Checking svelte sources...
run: common/scripts/each.sh svelte-check
- name: Building... - name: Building...
run: node common/scripts/install-run-rush.js rebuild --verbose run: node common/scripts/install-run-rush.js rebuild --verbose
- name: Checking svelte sources...
run: common/scripts/each.sh svelte-check

View File

@ -24,13 +24,13 @@ roots=$(node $sourceDir/install-run-rush.js list -f --json | grep "fullPath" | c
for i in $roots for i in $roots
do do
pushd ${i} pushd ${i}
if [ $(node ${runscript} | grep $1: | wc -l) > 0 ]; then
node ${runScript} $@ node ${runScript} $@
retVal=$?
retVal=$? if [ $retVal -ne 0 ]; then
if [ $retVal -ne 0 ]; then echo "Error"
echo "Error" exit $retVal
exit $retVal fi
fi fi
popd popd
done done