Skip to content

Commit

Permalink
ci: disable husky
Browse files Browse the repository at this point in the history
Husky setup is not needed during CI runs.

(cherry picked from commit cebcf56)
  • Loading branch information
alan-agius4 authored and clydin committed Jul 18, 2022
1 parent 34dd595 commit 0b65387
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .circleci/dynamic_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,20 @@ commands:
command: |
curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}"
initialize_env:
steps:
- run:
name: Initialize Environment
command: ./.circleci/env.sh

custom_attach_workspace:
description: Attach workspace at a predefined location
steps:
- attach_workspace:
at: *workspace_location
setup_windows:
steps:
- initialize_env
- run: nvm install 16.10
- run: nvm use 16.10
- run: npm install -g yarn@1.22.10
Expand Down Expand Up @@ -150,6 +157,7 @@ jobs:
else
echo "This build is not over a PR, nothing to do."
fi
- initialize_env
- restore_cache:
keys:
- *cache_key
Expand Down Expand Up @@ -208,10 +216,7 @@ jobs:
steps:
- custom_attach_workspace
- browser-tools/install-chrome
- run:
name: Initialize Environment
command: |
./.circleci/env.sh
- initialize_env
- run:
name: Execute CLI E2E Tests
command: |
Expand All @@ -237,9 +242,7 @@ jobs:
resource_class: medium
steps:
- custom_attach_workspace
- run:
name: Initialize Environment
command: ./.circleci/env.sh
- initialize_env
- run:
name: Initialize Saucelabs
command: setSecretVar SAUCE_ACCESS_KEY $(echo $SAUCE_ACCESS_KEY | rev)
Expand Down
3 changes: 3 additions & 0 deletions .circleci/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ setPublicVar SAUCE_READY_FILE_TIMEOUT 120

# Source `$BASH_ENV` to make the variables available immediately.
source $BASH_ENV;

# Disable husky.
setPublicVar HUSKY 0

0 comments on commit 0b65387

Please sign in to comment.