Skip to content

Commit e5d14dd

Browse files
authored
test: use egg-bin v6 (#11)
1 parent adcd009 commit e5d14dd

File tree

5 files changed

+11
-20
lines changed

5 files changed

+11
-20
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on:
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: [ "master" ]
20-
schedule:
21-
- cron: '19 23 * * 5'
2220

2321
jobs:
2422
analyze:

.github/workflows/nodejs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
branches:
1313
- main
1414
- master
15-
schedule:
16-
- cron: '0 2 * * *'
1715

1816
jobs:
1917
build:
@@ -22,7 +20,7 @@ jobs:
2220
strategy:
2321
fail-fast: false
2422
matrix:
25-
node-version: [14, 16, 18]
23+
node-version: [14.18.0, 14, 16, 18, 20]
2624
os: [ubuntu-latest]
2725

2826
steps:

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Release
22

33
on:
4-
# 合并后自动发布
54
push:
65
branches: [ master ]
76

8-
# 手动发布
9-
workflow_dispatch: {}
10-
117
jobs:
128
release:
139
name: Node.js
14-
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
10+
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
1511
secrets:
1612
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1713
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
],
1111
"scripts": {
1212
"lint": "eslint lib test",
13-
"test": "egg-bin test --full-trace --parallel",
14-
"test-local": "egg-bin test --full-trace",
13+
"test": "egg-bin test --parallel --ts false",
14+
"test-local": "egg-bin test --ts false",
1515
"tsd": "tsd",
16-
"cov": "egg-bin cov --full-trace --parallel",
16+
"cov": "egg-bin cov --parallel --ts false",
1717
"ci": "npm run lint && npm run tsd && npm run cov"
1818
},
1919
"repository": {
@@ -31,7 +31,7 @@
3131
"url": "https://github.com/node-modules/oss-client/issues"
3232
},
3333
"engines": {
34-
"node": ">= 14.17.0"
34+
"node": ">= 14.18.0"
3535
},
3636
"homepage": "https://github.com/node-modules/oss-client",
3737
"dependencies": {
@@ -46,19 +46,19 @@
4646
"oss-interface": "^1.0.1",
4747
"sdk-base": "^3.6.0",
4848
"stream-wormhole": "^1.0.4",
49-
"urllib": "^3.3.1",
49+
"urllib": "^3.18.1",
5050
"utility": "^1.8.0",
5151
"xml2js": "^0.4.16"
5252
},
5353
"devDependencies": {
5454
"@eggjs/tsconfig": "^1.1.0",
55-
"@types/node": "^14.18.34",
56-
"egg-bin": "^5.3.1",
55+
"@types/node": "^20.3.1",
56+
"egg-bin": "^6.4.1",
5757
"eslint": "^8.25.0",
5858
"eslint-config-egg": "^12.1.0",
5959
"mm": "^3.2.0",
6060
"sinon": "^1.17.7",
61-
"tsd": "^0.24.1",
62-
"typescript": "^4.8.4"
61+
"tsd": "^0.28.1",
62+
"typescript": "^5.1.3"
6363
}
6464
}

test/object.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ describe('test/object.test.js', () => {
331331
assert.equal(typeof object.res.headers.etag, 'string');
332332
assert.equal(object.name, name);
333333
const result = await store.get(name);
334-
console.log(result.content.toString());
335334
assert.equal(result.content.toString(), 'Hello, 你好 OSS');
336335
});
337336

0 commit comments

Comments
 (0)