File tree Expand file tree Collapse file tree 1 file changed +40
-5
lines changed
Expand file tree Collapse file tree 1 file changed +40
-5
lines changed Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88jobs :
9- npm-tests :
9+ npm-tests-lib :
1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
1515 # https://nodejs.org/en/about/releases/
1616 defaults :
1717 run :
18- working-directory : chartlets.js
18+ working-directory : chartlets.js/packages/lib
1919
2020 steps :
2121 - uses : actions/checkout@v3
@@ -28,16 +28,51 @@ jobs:
2828
2929 - run : npm ci
3030 - run : npm run lint
31- - run : npm run build
3231 - run : npm run test
32+
33+ - run : npm run coverage
34+ - name : Upload coverage reports for lib to Codecov
35+ uses : codecov/codecov-action@v4
36+ with :
37+ fail_ci_if_error : true
38+ directory : coverage/
39+ flags : frontend
40+ verbose : true
41+ token : ${{ secrets.CODECOV_TOKEN }}
42+
43+ - run : npm run build
44+
45+ npm-tests-demo :
46+ runs-on : ubuntu-latest
47+ strategy :
48+ matrix :
49+ node-version : [16.x, 18.x, 20.x]
50+ # See supported Node.js release schedule at
51+ # https://nodejs.org/en/about/releases/
52+ defaults :
53+ run :
54+ working-directory : chartlets.js/packages/demo
55+
56+ steps :
57+ - uses : actions/checkout@v3
58+ - name : Use Node.js ${{ matrix.node-version }}
59+ uses : actions/setup-node@v3
60+ with :
61+ node-version : ${{ matrix.node-version }}
62+ cache : ' npm'
63+ cache-dependency-path : chartlets.js/package-lock.json
64+
65+ - run : npm ci
66+ - run : npm run lint
67+ - run : npm run build
3368
3469 npm-deploy :
3570 name : Publish TS-React Package to npmjs
3671 runs-on : ubuntu-latest
37- needs : npm-tests
72+ needs : [ npm-tests-lib, npm-tests-demo]
3873 defaults :
3974 run :
40- working-directory : chartlets.js
75+ working-directory : chartlets.js/packages/lib
4176
4277 steps :
4378 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments