Skip to content

Commit

Permalink
test: use egg-bin v6 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Sep 14, 2023
1 parent adcd009 commit e5d14dd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '19 23 * * 5'

jobs:
analyze:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
branches:
- main
- master
schedule:
- cron: '0 2 * * *'

jobs:
build:
Expand All @@ -22,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
node-version: [14.18.0, 14, 16, 18, 20]
os: [ubuntu-latest]

steps:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Release

on:
# 合并后自动发布
push:
branches: [ master ]

# 手动发布
workflow_dispatch: {}

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
],
"scripts": {
"lint": "eslint lib test",
"test": "egg-bin test --full-trace --parallel",
"test-local": "egg-bin test --full-trace",
"test": "egg-bin test --parallel --ts false",
"test-local": "egg-bin test --ts false",
"tsd": "tsd",
"cov": "egg-bin cov --full-trace --parallel",
"cov": "egg-bin cov --parallel --ts false",
"ci": "npm run lint && npm run tsd && npm run cov"
},
"repository": {
Expand All @@ -31,7 +31,7 @@
"url": "https://github.com/node-modules/oss-client/issues"
},
"engines": {
"node": ">= 14.17.0"
"node": ">= 14.18.0"
},
"homepage": "https://github.com/node-modules/oss-client",
"dependencies": {
Expand All @@ -46,19 +46,19 @@
"oss-interface": "^1.0.1",
"sdk-base": "^3.6.0",
"stream-wormhole": "^1.0.4",
"urllib": "^3.3.1",
"urllib": "^3.18.1",
"utility": "^1.8.0",
"xml2js": "^0.4.16"
},
"devDependencies": {
"@eggjs/tsconfig": "^1.1.0",
"@types/node": "^14.18.34",
"egg-bin": "^5.3.1",
"@types/node": "^20.3.1",
"egg-bin": "^6.4.1",
"eslint": "^8.25.0",
"eslint-config-egg": "^12.1.0",
"mm": "^3.2.0",
"sinon": "^1.17.7",
"tsd": "^0.24.1",
"typescript": "^4.8.4"
"tsd": "^0.28.1",
"typescript": "^5.1.3"
}
}
1 change: 0 additions & 1 deletion test/object.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ describe('test/object.test.js', () => {
assert.equal(typeof object.res.headers.etag, 'string');
assert.equal(object.name, name);
const result = await store.get(name);
console.log(result.content.toString());
assert.equal(result.content.toString(), 'Hello, 你好 OSS');
});

Expand Down

0 comments on commit e5d14dd

Please sign in to comment.