Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: flakey CI asdf node version #9934

Merged
merged 10 commits into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,24 @@ workflows:
#!/usr/bin/env bash
echo "Gems being installed with bundler gem"
bundle install
echo "Node $NODE_VERSION being installed with asdf"
asdf list all nodejs
asdf install nodejs "$NODE_VERSION"
asdf global nodejs "$NODE_VERSION"
echo "Node $NODE_VERSION being installed"

set -e

# Install and enable NVM
wget -O install-nvm.sh "https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh"
echo "${NVM_SHA256SUM} install-nvm.sh" > install-nvm.sh.SHA256SUM
sha256sum -c install-nvm.sh.SHA256SUM
chmod +x install-nvm.sh && ./install-nvm.sh && rm ./install-nvm.sh
source "${HOME}/.nvm/nvm.sh"
echo 'source "${HOME}/.nvm/nvm.sh"' | tee -a ${HOME}/.{bashrc,profile}

nvm install ${NODE_VERSION}

envman add --key PATH --value $PATH

node --version

echo "Corepack being installed with npm"
npm i -g "corepack@$COREPACK_VERSION"
echo "Corepack enabling $YARN_VERSION"
Expand Down Expand Up @@ -427,7 +441,7 @@ workflows:
machine_type_id: elite-xl
envs:
- PRODUCTION_APP_URL: 'bs://ba40e5b7b4210a06c659b5c6818a3efec2624513' # Last production's QA build
- PRODUCTION_BUILD_VERSION_NAME: 7.22.0
- PRODUCTION_BUILD_VERSION_NAME: 7.22.0
- PRODUCTION_BUILD_VERSION_NUMBER: 1325
- CUCUMBER_TAG_EXPRESSION: '@upgrade and @androidApp'
- PRODUCTION_BUILD_STRING: 'MetaMask-QA v$PRODUCTION_BUILD_VERSION_NAME ($PRODUCTION_BUILD_VERSION_NUMBER)'
Expand Down Expand Up @@ -1363,6 +1377,12 @@ app:
- opts:
is_expand: false
IOS_APP_LINK: ''
- opts:
is_expand: false
NVM_VERSION: 0.39.7
- opts:
is_expand: false
NVM_SHA256SUM: '8e45fa547f428e9196a5613efad3bfa4d4608b74ca870f930090598f5af5f643'
- opts:
is_expand: false
NODE_VERSION: 20.12.2
Expand Down
Loading