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

Tweak Node version in CircleCI config (might require some more...) #1518

Merged
merged 1 commit into from
Oct 10, 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
24 changes: 11 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,31 @@ jobs:
JVM_OPTS: -Xmx3200m
TERM: dumb
SMTP_PORT: 2500
SBT_VERSION: 1.4.1
SBT_VERSION: 1.10.1

steps:
- checkout

- run:
name: Get sbt binary
command: |
sudo curl -L -o sbt-$SBT_VERSION.deb https://scala.jfrog.io/artifactory/debian/sbt-$SBT_VERSION.deb
sudo dpkg -i sbt-$SBT_VERSION.deb
sudo rm sbt-$SBT_VERSION.deb

- checkout
- node/install:
node-version: '18.12.0'

# Do some faff magic to get the right node version installed
# Install dependencies with specific behaviors
- run:
name: Setup NVM
name: Install Dependencies
command: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV

- run: |
nvm install v16.16.0
nvm alias default v16.16.0

- node/install-packages:
override-ci-command: npm i
npm config set progress false
npm config set fund false
npm ci --prefer-offline

- run:
name: Run JS tests
command: npm test

# Download and cache dependencies
Expand Down
Loading