2020 strategy :
2121 matrix :
2222 os : [ubuntu-latest]
23- node-version : [16.x ]
23+ node-version : [lts/* ]
2424
2525 runs-on : ${{ matrix.os }}
2626
@@ -29,12 +29,12 @@ jobs:
2929 cancel-in-progress : true
3030
3131 steps :
32- - uses : actions/checkout@v3
32+ - uses : actions/checkout@v4
3333 with :
3434 fetch-depth : 0
3535
3636 - name : Use Node.js ${{ matrix.node-version }}
37- uses : actions/setup-node@v3
37+ uses : actions/setup-node@v4
3838 with :
3939 node-version : ${{ matrix.node-version }}
4040 cache : " npm"
6363 strategy :
6464 matrix :
6565 os : [ubuntu-latest, windows-latest, macos-latest]
66- node-version : [12.x, 14.x, 16.x, 18.x, 20.x]
66+ node-version : [12.x, 14.x, 16.x, 18.x, 20.x, 22.x ]
6767
6868 runs-on : ${{ matrix.os }}
6969
@@ -76,12 +76,24 @@ jobs:
7676 if : matrix.os == 'windows-latest'
7777 run : git config --global core.autocrlf input
7878
79- - uses : actions/checkout@v3
79+ - uses : actions/checkout@v4
80+
81+ - uses : actions/github-script@v7
82+ id : calculate_architecture
83+ with :
84+ result-encoding : string
85+ script : |
86+ if ('${{ matrix.os }}' === 'macos-latest' && ('${{ matrix['node-version'] }}' === '10.x' || '${{ matrix['node-version'] }}' === '12.x' || '${{ matrix['node-version'] }}' === '14.x')) {
87+ return "x64"
88+ } else {
89+ return ''
90+ }
8091
8192 - name : Use Node.js ${{ matrix.node-version }}
82- uses : actions/setup-node@v3
93+ uses : actions/setup-node@v4
8394 with :
8495 node-version : ${{ matrix.node-version }}
96+ architecture : ${{ steps.calculate_architecture.outputs.result }}
8597 cache : " npm"
8698
8799 - name : Install dependencies
0 commit comments