Skip to content

Commit 7e46cee

Browse files
ronilancclauss
andauthored
Patch merged PR #652 (#903)
* Fixed errors that were created when a three year old pull request (#652) was rebased over multiple configuration changes. * Run s3-bucket tests on pull requests * Stop testing on Node.js v18 which is EOL next week * Stop testing on Node.js v18 which is EOL next week --------- Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent c0258ab commit 7e46cee

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
node-version: ['18.x', '20.x', 'lts/*']
15+
node-version: ['20.x', 'lts/*']
1616
os: [macos-latest, ubuntu-latest, ubuntu-24.04-arm, windows-latest]
1717
runs-on: ${{ matrix.os }}
1818
steps:

.github/workflows/s3-bucket.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: S3 Bucket Test
22

33
on:
4+
pull_request:
45
push:
6+
branches:
7+
- master
58
workflow_dispatch:
69

710
jobs:
@@ -10,7 +13,7 @@ jobs:
1013
strategy:
1114
matrix:
1215
os: [ubuntu-latest, macos-latest, windows-latest]
13-
node: [18, 20, 22]
16+
node: [20, 'lts/*']
1417
env:
1518
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
1619
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

lib/mock/http.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const path = require('path');
77
const nock = require('nock');
88
const os = require('os');
99

10-
const log = require('npmlog');
11-
log.disableProgress(); // disable the display of a progress bar
10+
const log = require('../util/log.js');
1211
log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
1312

1413
function http_mock() {
@@ -17,6 +16,7 @@ function http_mock() {
1716
const basePath = `${os.tmpdir()}/mock`;
1817

1918
nock(new RegExp('([a-z0-9]+[.])*s3[.]us-east-1[.]amazonaws[.]com'))
19+
.persist()
2020
.get(() => true) //a function that always returns true is a catch all for nock
2121
.reply(
2222
(uri) => {

lib/mock/s3.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ module.exports = exports = s3_mock;
55
const AWSMock = require('mock-aws-s3');
66
const os = require('os');
77

8-
const log = require('npmlog');
9-
log.disableProgress(); // disable the display of a progress bar
8+
const log = require('../util/log.js');
109
log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
1110

1211
function s3_mock() {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)