Skip to content

Commit 0b65387

Browse files
alan-agius4clydin
authored andcommitted
ci: disable husky
Husky setup is not needed during CI runs. (cherry picked from commit cebcf56)
1 parent 34dd595 commit 0b65387

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.circleci/dynamic_config.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,20 @@ commands:
8181
command: |
8282
curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}"
8383
84+
initialize_env:
85+
steps:
86+
- run:
87+
name: Initialize Environment
88+
command: ./.circleci/env.sh
89+
8490
custom_attach_workspace:
8591
description: Attach workspace at a predefined location
8692
steps:
8793
- attach_workspace:
8894
at: *workspace_location
8995
setup_windows:
9096
steps:
97+
- initialize_env
9198
- run: nvm install 16.10
9299
- run: nvm use 16.10
93100
- run: npm install -g [email protected]
@@ -150,6 +157,7 @@ jobs:
150157
else
151158
echo "This build is not over a PR, nothing to do."
152159
fi
160+
- initialize_env
153161
- restore_cache:
154162
keys:
155163
- *cache_key
@@ -208,10 +216,7 @@ jobs:
208216
steps:
209217
- custom_attach_workspace
210218
- browser-tools/install-chrome
211-
- run:
212-
name: Initialize Environment
213-
command: |
214-
./.circleci/env.sh
219+
- initialize_env
215220
- run:
216221
name: Execute CLI E2E Tests
217222
command: |
@@ -237,9 +242,7 @@ jobs:
237242
resource_class: medium
238243
steps:
239244
- custom_attach_workspace
240-
- run:
241-
name: Initialize Environment
242-
command: ./.circleci/env.sh
245+
- initialize_env
243246
- run:
244247
name: Initialize Saucelabs
245248
command: setSecretVar SAUCE_ACCESS_KEY $(echo $SAUCE_ACCESS_KEY | rev)

.circleci/env.sh

+3
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ setPublicVar SAUCE_READY_FILE_TIMEOUT 120
3333

3434
# Source `$BASH_ENV` to make the variables available immediately.
3535
source $BASH_ENV;
36+
37+
# Disable husky.
38+
setPublicVar HUSKY 0

0 commit comments

Comments
 (0)