File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will do a clean install of node dependencies, run JS and Typescript tests.
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+ name : render-html
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+ pull_request :
11+
12+ jobs :
13+ test :
14+ name : Testing
15+ runs-on : ubuntu-latest
16+
17+ strategy :
18+ matrix :
19+ node-version : [20.x]
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+ - name : Use Node.js ${{ matrix.node-version }}
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ${{ matrix.node-version }}
27+ - run : yarn install --immutable
28+ - run : yarn build:css-processor
29+ name : Build dependencies (css-processor)
30+ - run : yarn build:transient-render-engine
31+ name : Build dependencies (transient-render-engine)
32+ - run : yarn test:render-html:ts
33+ name : Typescript Tests
34+ - run : yarn run test:render-html:lint
35+ name : Linting Tests
36+ - run : yarn run test:render-html:jest --coverage
37+ name : Behavior Tests
38+ - run : yarn build:render-html
39+ name : Build
40+ - uses : codecov/codecov-action@v4
41+ with :
42+ flags : render-html
43+ fail_ci_if_error : true
44+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1313 "scripts" : {
1414 "build:css-processor" : " yarn workspace @native-html/css-processor build" ,
1515 "build:transient-render-engine" : " yarn workspace @native-html/transient-render-engine build" ,
16+ "build:render-html" : " yarn workspace react-native-render-html build" ,
1617 "test:css-processor" : " yarn workspace @native-html/css-processor test" ,
1718 "test:css-processor:ts" : " yarn workspace @native-html/css-processor test:ts" ,
1819 "test:css-processor:lint" : " yarn workspace @native-html/css-processor test:lint" ,
2223 "test:transient-render-engine:lint" : " yarn workspace @native-html/transient-render-engine test:lint" ,
2324 "test:transient-render-engine:jest" : " yarn workspace @native-html/transient-render-engine test:jest" ,
2425 "test:transient-render-engine:perf" : " yarn workspace performance-testing benchmark" ,
26+ "test:render-html" : " yarn workspace react-native-render-html test" ,
27+ "test:render-html:ts" : " yarn workspace react-native-render-html test:ts" ,
28+ "test:render-html:lint" : " yarn workspace react-native-render-html test:lint" ,
29+ "test:render-html:jest" : " yarn workspace react-native-render-html test:jest" ,
2530 "release:css-processor" : " yarn workspace @native-html/css-processor release-it" ,
2631 "release:transient-render-engine" : " yarn workspace @native-html/transient-render-engine release-it" ,
2732 "postinstall" : " husky install"
You can’t perform that action at this time.
0 commit comments