From 96a48948754e03d013c0ddef31e99d9f64a0c0a7 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Tue, 16 Apr 2024 17:45:20 -0700 Subject: [PATCH] Actually run CI on the right versions of Node (#2499) --- .github/workflows/actions/install-dependencies/action.yml | 7 ++++++- .github/workflows/pull-requests.yml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions/install-dependencies/action.yml b/.github/workflows/actions/install-dependencies/action.yml index 6f96a80eb786..aeeb810bd529 100644 --- a/.github/workflows/actions/install-dependencies/action.yml +++ b/.github/workflows/actions/install-dependencies/action.yml @@ -1,6 +1,11 @@ name: Install Dependencies description: Sets up Node and its package manager, then installs all dependencies +inputs: + version: + default: 'lts/*' + type: string + runs: using: composite steps: @@ -12,7 +17,7 @@ runs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ inputs.version }} cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 7258a3eae32e..a1bd755b1e15 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -36,6 +36,8 @@ jobs: - name: Install Dependencies uses: ./.github/workflows/actions/install-dependencies + with: + version: ${{ matrix.node }} - name: Setup Solana Test Validator id: start-test-validator