Skip to content

Commit 1967b1b

Browse files
authored
test on more node versions (#279)
1 parent 1fdecad commit 1967b1b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [8]
12+
node-version:
13+
- '8'
14+
- '12'
15+
- '22'
1316
steps:
1417
- uses: actions/checkout@v4
15-
- name: Setup Python 3.8
16-
uses: actions/setup-python@v4
17-
with:
18-
python-version: '3.8'
1918
- name: Use Node.js ${{ matrix.node-version }}
2019
uses: actions/setup-node@v4
2120
with:

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"license": "MIT",
2626
"devDependencies": {
2727
"mocha": "^5.2.0",
28-
"native-hello-world": "^1.0.0",
2928
"should": "^13.2.3",
3029
"sinon": "^7.3.2",
3130
"standard": "^13.0.1"

test/proxyquire-global.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ describe('global flags set', function () {
4545
}
4646
}
4747

48-
proxyquire('native-hello-world', stubs)
49-
proxyquire('native-hello-world', stubs)
48+
// Using 'crypto' instead of 'native-hello-world' as it's a built-in native module
49+
// that's always available and doesn't require compilation
50+
proxyquire('crypto', stubs)
51+
proxyquire('crypto', stubs)
5052
})
5153
})
5254

0 commit comments

Comments
 (0)