File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,16 +25,14 @@ jobs:
2525 - uses : actions/checkout@v2
2626 - name : Fetch the master branch
2727 run : git fetch origin HEAD:refs/remotes/origin/HEAD --depth 1
28- - name : Fetch the master branch
29- run : git diff --name-only origin/HEAD --no-renames --diff-filter=ACMR
3028 - name : Use Node.js ${{ matrix.node-version }}
3129 uses : actions/setup-node@v1
3230 with :
3331 node-version : ${{ matrix.node-version }}
3432 - run : npm i
35- - run : npm run cover
36- # run linter
37- - run : |
33+ - run : npm run cover-json
34+ - run : |
35+ # eslint
3836 set -x;
3937 git status;
4038 git checkout HEAD -- package.json;
@@ -51,22 +49,22 @@ jobs:
5149 node node_modules/eslint/bin/eslint $jsChanges;
5250 fi
5351 fi
54- # check types
55- - run : |
52+ - run : |
53+ # check types
5654 set -x;
5755 npx tsc -v;
5856 npm run update-types;
5957 git diff --color --exit-code ./ace*d.ts;
6058 npm run typecheck;
6159 node_modules/.bin/tsc --noImplicitAny --strict --noUnusedLocals --noImplicitReturns --noUnusedParameters --noImplicitThis ace.d.ts;
62- - run : |
60+ - run : |
61+ # test-npm-package
6362 set -x;
6463 ./tool/test-npm-package.sh
6564 # upload to codecov
6665 - uses : codecov/codecov-action@v3
6766 with :
6867 token : d8edca4b-8e97-41e5-b54e-34c7cf3b2d47
69- file : ./coverage/coverage.json
7068 flags : unittests
7169 name : codecov-umbrella
7270 fail_ci_if_error : true
Original file line number Diff line number Diff line change 1717 "amd-loader" : " ~0.0.4" ,
1818 "architect-build" : " https://github.com/c9/architect-build/tarball/43a6fdeffe" ,
1919 "asyncjs" : " ~0.0.12" ,
20+ "c8" : " ^11.0.0" ,
2021 "dryice" : " 0.4.11" ,
2122 "eslint" : " ^8.20.0" ,
22- "istanbul " : " ^0.4 .5" ,
23+ "mocha " : " ^11.7 .5" ,
2324 "standard-version" : " ^9.3.2" ,
2425 "typescript" : " 5.9.2"
2526 },
4041 ],
4142 "scripts" : {
4243 "start" : " node static.js" ,
43- "test" : " node src/test/all.js" ,
44- "cover" : " istanbul cover src/test/all.js" ,
44+ "test" : " mocha \" ./src/**/*_test.js\" --exit -p --color" ,
45+ "cover" : " c8 --reporter=lcov --reporter=text-summary npm run test" ,
46+ "cover-json" : " c8 --reporter=json npm run test" ,
4547 "lint" : " eslint \" src/**/*.js\" \" *.js\" " ,
4648 "fix" : " npm run lint -- --fix" ,
4749 "typecheck" : " tsc -p tsconfig.json" ,
You can’t perform that action at this time.
0 commit comments