Skip to content

Commit

Permalink
Merge branch 'master' into updatedeps
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 authored May 28, 2024
2 parents be78a47 + 41596b7 commit 5652819
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
webpack-version: [latest]

runs-on: ${{ matrix.os }}
Expand All @@ -82,11 +82,21 @@ jobs:
run: git config --global core.autocrlf input

- uses: actions/checkout@v4

- uses: actions/github-script@v7
id: calculate_architecture
with:
result-encoding: string
script: |
if ('${{ matrix.os }}' === 'macos-latest' && ('${{ matrix['node-version'] }}' === '10.x' || '${{ matrix['node-version'] }}' === '12.x' || '${{ matrix['node-version'] }}' === '14.x')) {
return "x64"
} else {
return ''
}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ steps.calculate_architecture.outputs.result }}
cache: "npm"

- name: Install dependencies
Expand Down

0 comments on commit 5652819

Please sign in to comment.