ci: avoid duplicate linting in CI

This commit is contained in:
Tom French 2022-05-29 20:09:35 +01:00 committed by James Long
parent 0a7e6fba8b
commit 91147285f0
2 changed files with 7 additions and 2 deletions

View file

@ -6,6 +6,7 @@ VERSION=""
BETA=""
RELEASE=""
RELEASE_NOTES=""
CI=${CI:-false}
cd "$ROOT/.."
@ -74,7 +75,7 @@ fi
# We only need to run linting once (and this doesn't seem to work on
# Windows for some reason)
if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ $CI != true && "$OSTYPE" == "darwin"* ]]; then
yarn lint
fi

View file

@ -3,6 +3,7 @@
ROOT=`dirname $0`
VERSION=""
RELEASE=""
CI=${CI:-false}
cd "$ROOT/.."
@ -50,7 +51,10 @@ if [ -n "$RELEASE" ]; then
fi
fi
yarn lint
# There's no need to check linting in CI as it'll be done in a different step.
if [ $CI != true ]; then
yarn lint
fi
(
cd packages/loot-design;