Skip to content

Commit 415eea5

Browse files
authored
Update workflow (#29)
* Update nodejs.yml * Update nodejs.yml * Update nodejs.yml * Update package.json * Update nodejs.yml * Update nodejs.yml * Revert "Update nodejs.yml" This reverts commit 2d43967. * Update nodejs.yml * Update nodejs.yml * Update package.json * Update nodejs.yml * Update nodejs.yml * Update nodejs.yml * Update nodejs.yml * Update nodejs.yml * Bump minimum gyp-parser version
1 parent 0fbe87f commit 415eea5

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ on: [push, pull_request]
22

33
name: CI
44

5+
defaults:
6+
run:
7+
shell: bash
8+
59
jobs:
610
test-posix:
711
name: Unix tests
812
strategy:
913
fail-fast: false
1014
matrix:
1115
os: [ubuntu-latest, macos-latest]
12-
node-version: [12.18.4, 12.x, 14.x, 16.x]
13-
runs-on: ${{matrix.os}}
16+
node-version: [14.x, 16.x, 18.x]
17+
runs-on: ${{ matrix.os }}
1418
steps:
1519
- uses: actions/checkout@v2
1620
- name: Use Node.js ${{ matrix.node-version }}
@@ -19,6 +23,7 @@ jobs:
1923
check-latest: true
2024
node-version: ${{ matrix.node-version }}
2125
- name: Install [email protected]
26+
if: ${{ matrix.node-version == '14.x' }}
2227
run: npm install -g [email protected]
2328
- name: Install Dependencies
2429
run: npm install
@@ -30,19 +35,26 @@ jobs:
3035
strategy:
3136
fail-fast: false
3237
matrix:
33-
node-version: [12.18.4, 12.x, 14.x, 16.x]
38+
node-version: [14.x, 16.x, 18.x]
3439
shard: [1, 2, 3]
3540
runs-on: windows-latest
3641
steps:
3742
- uses: actions/checkout@v2
43+
- name: Install python
44+
uses: actions/setup-python@v2
45+
with:
46+
python-version: '3.x'
3847
- name: Install Node.js build deps
3948
run: choco install nasm
49+
- name: Install developer command prompt
50+
uses: ilammy/msvc-dev-cmd@v1
4051
- name: Use Node.js ${{ matrix.node-version }}
4152
uses: actions/setup-node@v2
4253
with:
4354
check-latest: true
4455
node-version: ${{ matrix.node-version }}
4556
- name: Install [email protected]
57+
if: ${{ matrix.node-version == '14.x' }}
4658
run: npm install -g [email protected]
4759
- name: Install Dependencies
4860
run: npm install

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@
5050
"eslint-plugin-promise": "^4.2.1",
5151
"eslint-plugin-standard": "^4.0.1",
5252
"gen-esm-wrapper": "^1.1.0",
53-
"mocha": "^8.1.3",
53+
"mocha": "^10.0.0",
5454
"nyc": "^15.1.0",
5555
"ts-node": "^10.8.1",
5656
"typescript": "^4.0.3",
5757
"weak-napi": "2.0.2"
5858
},
5959
"dependencies": {
60-
"@pkgjs/nv": "^0.1.0",
60+
"@pkgjs/nv": "^0.2.1",
6161
"chalk": "^4.1.0",
6262
"cli-progress": "^3.8.2",
63-
"gyp-parser": "^1.0.1",
63+
"gyp-parser": "^1.0.4",
6464
"node-fetch": "^2.6.1",
65-
"node-gyp": "^7.1.0",
65+
"node-gyp": "^9.0.0",
6666
"pkg-up": "^3.1.0",
6767
"rimraf": "^3.0.2",
6868
"semver": "^7.3.2",

0 commit comments

Comments
 (0)