From bf31da18385ca24a618e90e4772c4bf2416faa06 Mon Sep 17 00:00:00 2001 From: Ryan Dorson Date: Mon, 11 Nov 2024 23:34:39 +0000 Subject: [PATCH] fix(workflows): support mac test workflow with old versions of node by using x64 image --- .github/workflows/nodejs.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4422a1b..87f62ac 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -42,9 +42,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - - name: Use latest NPM - run: sudo npm i -g npm - - name: Install dependencies run: npm ci @@ -66,6 +63,13 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x] webpack-version: [latest] + exclude: + - os: macos-latest + node-version: 10.x + - os: macos-latest + node-version: 12.x + - os: macos-latest + node-version: 14.x runs-on: ${{ matrix.os }} @@ -86,14 +90,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - - name: Use latest NPM on ubuntu/macos - if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' - run: sudo npm i -g npm - - - name: Use latest NPM on windows - if: matrix.os == 'windows-latest' - run: npm i -g npm - - name: Install dependencies run: npm ci