ci: avoid duplicate linting in CI
This commit is contained in:
parent
0a7e6fba8b
commit
91147285f0
2 changed files with 7 additions and 2 deletions
|
@ -6,6 +6,7 @@ VERSION=""
|
||||||
BETA=""
|
BETA=""
|
||||||
RELEASE=""
|
RELEASE=""
|
||||||
RELEASE_NOTES=""
|
RELEASE_NOTES=""
|
||||||
|
CI=${CI:-false}
|
||||||
|
|
||||||
cd "$ROOT/.."
|
cd "$ROOT/.."
|
||||||
|
|
||||||
|
@ -74,7 +75,7 @@ fi
|
||||||
|
|
||||||
# We only need to run linting once (and this doesn't seem to work on
|
# We only need to run linting once (and this doesn't seem to work on
|
||||||
# Windows for some reason)
|
# Windows for some reason)
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ $CI != true && "$OSTYPE" == "darwin"* ]]; then
|
||||||
yarn lint
|
yarn lint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
ROOT=`dirname $0`
|
ROOT=`dirname $0`
|
||||||
VERSION=""
|
VERSION=""
|
||||||
RELEASE=""
|
RELEASE=""
|
||||||
|
CI=${CI:-false}
|
||||||
|
|
||||||
cd "$ROOT/.."
|
cd "$ROOT/.."
|
||||||
|
|
||||||
|
@ -50,7 +51,10 @@ if [ -n "$RELEASE" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# There's no need to check linting in CI as it'll be done in a different step.
|
||||||
|
if [ $CI != true ]; then
|
||||||
yarn lint
|
yarn lint
|
||||||
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
cd packages/loot-design;
|
cd packages/loot-design;
|
||||||
|
|
Loading…
Reference in a new issue