Skip to content

Commit

Permalink
fix(workflows): support mac test workflow with old versions of node b…
Browse files Browse the repository at this point in the history
…y using x64 image
  • Loading branch information
SlyryD committed Nov 11, 2024
1 parent 183f619 commit 75589cc
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}

Expand All @@ -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

Expand Down

0 comments on commit 75589cc

Please sign in to comment.