Skip to content

Commit 2faca57

Browse files
committed
ci: output npm version and install python 2.7 for node<16
1 parent 98a675e commit 2faca57

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ jobs:
2222
node-version: ${{ matrix.node-version }}
2323
- name: Check Node.js version
2424
run: node -pe process.versions
25+
- name: Check npm version
26+
run: npm -v
27+
- name: Install Python 2.7 (node <16.x)
28+
if: ${{ contains(fromJSON('["10.x", "12.x", "14.x"]'), matrix.node-version) }}
29+
uses: LizardByte/[email protected]
30+
with:
31+
python-version: '2.7'
32+
- name: Use Python 2.7 (node <16.x)
33+
if: ${{ contains(fromJSON('["10.x", "12.x", "14.x"]'), matrix.node-version) }}
34+
run: echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV"
2535
- name: Install module
2636
run: npm install
2737
- name: Run tests
@@ -48,6 +58,8 @@ jobs:
4858
python-version: '3.10'
4959
- name: Check Node.js version
5060
run: node -pe process.versions
61+
- name: Check npm version
62+
run: npm -v
5163
- name: Install module
5264
run: npm install
5365
- name: Run tests
@@ -68,6 +80,8 @@ jobs:
6880
node-version: ${{ matrix.node-version }}
6981
- name: Check Node.js version
7082
run: node -pe process.versions
83+
- name: Check npm version
84+
run: npm -v
7185
- name: Install module
7286
run: npm install
7387
- name: Run tests

0 commit comments

Comments
 (0)