-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c52e764
commit 4e3b55a
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Node.js CI Windows Platform | |
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHON_VERSION: '3.11' | ||
|
||
permissions: | ||
contents: read | ||
|
||
|
@@ -18,11 +21,23 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
architecture: ${{ matrix.architecture }} | ||
|
||
# update npm to use latest node-gyp | ||
- run: npm install -g npm@latest | ||
if: ${{ matrix.node-version != '16' }} | ||
# [email protected] drops support for Node.js v14 and v16 | ||
- run: npm install -g npm@"<10.0.0" | ||
if: ${{ matrix.node-version == '16' }} | ||
|
||
- name: Check Node.js installation | ||
run: | | ||
node --version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Node.js CI Unix Platform | |
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHON_VERSION: '3.11' | ||
|
||
permissions: | ||
contents: read | ||
|
||
|
@@ -23,10 +26,22 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
# update npm to use latest node-gyp | ||
- run: npm install -g npm@latest | ||
if: ${{ matrix.node-version != '16' }} | ||
# [email protected] drops support for Node.js v14 and v16 | ||
- run: npm install -g npm@"<10.0.0" | ||
if: ${{ matrix.node-version == '16' }} | ||
|
||
- name: Check Node.js installation | ||
run: | | ||
node --version | ||
|