From dabcdf23241f4cf19806c53e4122a32e9b25bee3 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 12 Jan 2023 10:49:46 -0500 Subject: chore(ci): only install node for the benchmarks (#17371) --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d9bf48e3..0f5506335 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,11 +120,11 @@ jobs: Where-Object { Test-Path "$_\python.exe" } | Select-Object -Skip 1 | ForEach-Object { Move-Item "$_" "$_.disabled" } - - name: Install Node + - if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''bench''))' + name: Install Node uses: actions/setup-node@v3 with: node-version: 18 - if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')' - name: Authenticate with Google Cloud if: |- !(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.profile == 'release' && @@ -234,15 +234,17 @@ jobs: - name: Log versions shell: bash run: |- - node -v python --version rustc --version cargo --version - # Deno is installed when linting. if [ "${{ matrix.job }}" == "lint" ] then deno --version fi + if [ "${{ matrix.job }}" == "bench" ] + then + node -v + fi if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'')' - name: Cache Cargo home uses: actions/cache@v3 -- cgit v1.2.3