Skip to content
Open
Show file tree
Hide file tree
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
51 changes: 51 additions & 0 deletions .github/workflows/actions/setup-node-environment/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Setup Node Environment
description: Common setup steps for checkout, Node.js, pnpm configuration, and dependencies

outputs:
vscode-node-version:
description: "The Node.js version used by VS Code"
value: ${{ steps.get-vscode-node-version.outputs.vscode-node-version }}

runs:
using: "composite"
steps:
- name: Get VS Code Node.js version
id: get-vscode-node-version
shell: bash
run: |
# Fetch Node.js version from VS Code's .nvmrc, default to 22.21.1 if unavailable
NODE_VERSION=$(curl -fsSL https://raw.githubusercontent.com/microsoft/vscode/main/.nvmrc | tr -d '[:space:]')
if [ -z "$NODE_VERSION" ]; then
NODE_VERSION="22.21.1"
fi
echo "Using Node.js version for VS Code extension tests: $NODE_VERSION"
echo "vscode-node-version=$NODE_VERSION" >> $GITHUB_OUTPUT

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js Environment
uses: actions/setup-node@v4
with:
node-version: ${{ steps.get-vscode-node-version.outputs.vscode-node-version }}
cache: pnpm

- name: Install Deps Ubuntu
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get update -y && sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring
shell: bash

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Run node-gyp bug workaround script
run: |
curl -sSfLO https://raw.githubusercontent.com/mongodb-js/compass/42e6142ae08be6fec944b80ff6289e6bcd11badf/.evergreen/node-gyp-bug-workaround.sh && bash node-gyp-bug-workaround.sh
shell: bash

- name: Install Dependencies
shell: bash
run: |
pnpm install --frozen-lockfile
158 changes: 0 additions & 158 deletions .github/workflows/actions/test-and-build/action.yaml

This file was deleted.

Loading
Loading