File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99
1010 steps :
11- - uses : actions/checkout@v2
12- - name : Use Node.js ${{ matrix.node_version }}
13- uses : actions/setup-node@v2
11+ - uses : actions/checkout@v6
12+ - name : Use Node.js 22
13+ uses : actions/setup-node@v6
1414 with :
1515 node-version : " 22"
1616 - name : Prepare env
2323 runs-on : ubuntu-latest
2424
2525 steps :
26- - uses : actions/checkout@v2
27- - name : Use Node.js ${{ matrix.node_version }}
28- uses : actions/setup-node@v2
26+ - uses : actions/checkout@v6
27+ - name : Use Node.js 22
28+ uses : actions/setup-node@v6
2929 with :
3030 node-version : " 22"
3131 - name : Prepare env
@@ -38,14 +38,32 @@ jobs:
3838 runs-on : ubuntu-latest
3939
4040 steps :
41- - uses : actions/checkout@v2
42- - name : Use Node.js ${{ matrix.node_version }}
43- uses : actions/setup-node@v2
41+ - uses : actions/checkout@v6
42+ - name : Use Node.js 22
43+ uses : actions/setup-node@v6
4444 with :
4545 node-version : " 22"
4646 - name : Prepare env
4747 run : yarn install --ignore-scripts --frozen-lockfile
4848 - name : Run unit tests
4949 run : yarn start test
5050 - name : Run code coverage
51- uses : codecov/codecov-action@v2.1.0
51+ uses : codecov/codecov-action@v5
52+
53+ size :
54+ name : Bundle Size Check
55+ runs-on : ubuntu-latest
56+ needs : test
57+
58+ steps :
59+ - uses : actions/checkout@v6
60+ - name : Use Node.js 22
61+ uses : actions/setup-node@v6
62+ with :
63+ node-version : " 22"
64+ - name : Prepare env
65+ run : yarn install --ignore-scripts --frozen-lockfile
66+ - name : Build
67+ run : yarn start build
68+ - name : Check bundle size
69+ run : npx size-limit
Original file line number Diff line number Diff line change 5454 "babel-core" : " ^7.0.0-bridge.0" ,
5555 "babel-eslint" : " ^10.1.0" ,
5656 "babel-jest" : " ^29.7.0" ,
57- "bundlesize" : " ^0.18.2" ,
5857 "doctoc" : " ^2.2.1" ,
5958 "eslint" : " ^9.27.0" ,
6059 "eslint-config-react-app" : " ^7.0.1" ,
8786 "rollup-plugin-typescript2" : " ^0.36.0" ,
8887 "rollup-plugin-uglify" : " ^6.0.4" ,
8988 "ts-jest" : " ^29.3.4" ,
90- "typescript" : " ^5.3.3"
89+ "typescript" : " ^5.3.3" ,
90+ "@size-limit/preset-small-lib" : " ^12.0.0" ,
91+ "size-limit" : " ^12.0.0"
9192 },
9293 "peerDependencies" : {
9394 "final-form" : " >=5.0.0" ,
107108 " git add"
108109 ]
109110 },
110- "bundlesize " : [
111+ "size-limit " : [
111112 {
112113 "path" : " dist/react-final-form-html5-validation.umd.min.js" ,
113- "maxSize " : " 2 kB"
114+ "limit " : " 2 kB"
114115 },
115116 {
116117 "path" : " dist/react-final-form-html5-validation.es.js" ,
117- "maxSize " : " 3 kB"
118+ "limit " : " 3 kB"
118119 },
119120 {
120121 "path" : " dist/react-final-form-html5-validation.cjs.js" ,
121- "maxSize " : " 3 kB"
122+ "limit " : " 3 kB"
122123 }
123124 ],
124125 "collective" : {
You can’t perform that action at this time.
0 commit comments