Closed zongUMR closed 2 years ago
:loop: Code coverage
Filename | Statements | Branches | Functions | Lines |
---|---|---|---|---|
src/libs/utils/index.js | 100% | 100% | 100% | 100% |
src/libs/utils/basic.js | 34.63% | 24.73% | 44.12% | 34.55% |
src/libs/utils/utils.js | 62.85% | 40.14% | 60% | 61.48% |
src/libs/config.js | 70.37% | 67.14% | 100% | 70.37% |
src/libs/cli.js | 60.34% | 41.67% | 45.83% | 61.4% |
tests/testUtils.js | 85.71% | 100% | 75% | 85.71% |
Close:
https://app.asana.com/0/0/1201436337482655/f
This PR will do two things in
github CI
:pkg:build
to build three binaries:serverless-tencent-linux, serverless-tencent-macos, serverless-tencent-win.exe
for platforms:linux-x64, mac-x64, win-654
pkg:upload
to upload these binaries to our Tencent COS:slt-binary-sv-1300963013
, its region isSilicon Valley
, you can see the , so I think we can have a good upload speed in github CI.latest-tag
file, which contains the latest version.Ps. I have not tested it in the real Github CI. I only built and uploaded the binaries on my local and it works well, if you want to test locally:
npm i
npm run build
npm run pkg:build
TENCENT_SECRET_KEY=xxx TENCENT_SECRET_ID=xxx npm run pkg:upload -- TAG