chore: added codecov with ci git action · alibaba/lowcode-engine@eb73686 · GitHub
Skip to content

Commit eb73686

Browse files
liujupingLeoYuan
authored andcommitted
chore: added codecov with ci git action
1 parent d1c9838 commit eb73686

6 files changed

Lines changed: 132 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 116 additions & 0 deletions

modules/code-generator/src/parser/SchemaParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class SchemaParser implements ISchemaParser {
123123
const schema = this.decodeSchema(schemaSrc);
124124

125125
// 解析三方组件依赖
126-
schema.componentsMap.forEach((info) => {
126+
schema.componentsMap.forEach((info: any) => {
127127
if (info.componentName) {
128128
compDeps[info.componentName] = {
129129
...info,

modules/code-generator/src/utils/expressionParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function parseExpressionGetKeywords(expr: string | null | undefined): str
181181
const fieldValue = node[fieldName as keyof typeof node];
182182
if (typeof fieldValue === 'object') {
183183
if (Array.isArray(fieldValue)) {
184-
fieldValue.forEach((item) => {
184+
fieldValue.forEach((item: any) => {
185185
addIdentifierIfNeeded(item);
186186
});
187187
} else {
@@ -233,7 +233,7 @@ export function parseExpressionGetGlobalVariables(
233233
const fieldValue = node[fieldName as keyof typeof node];
234234
if (typeof fieldValue === 'object') {
235235
if (Array.isArray(fieldValue)) {
236-
fieldValue.forEach((item) => {
236+
fieldValue.forEach((item: any) => {
237237
addUndeclaredIdentifierIfNeeded(item, path);
238238
});
239239
} else {

packages/engine/README-zh_CN.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
[![NPM version][npm-image]][npm-url] [![NPM downloads][download-image]][download-url]
1414

15-
[![][issues-helper-image]][issues-helper-url] [![Issues need help][help-wanted-image]][help-wanted-url]
15+
[![][issues-helper-image]][issues-helper-url] [![Issues need help][help-wanted-image]][help-wanted-url]
16+
17+
[![codecov][codecov-image-url]][codecov-url]
1618

1719
[npm-image]: https://img.shields.io/npm/v/@alilc/lowcode-engine.svg?style=flat-square
1820
[npm-url]: http://npmjs.org/package/@alilc/lowcode-engine
@@ -25,6 +27,9 @@
2527
[issues-helper-image]: https://img.shields.io/badge/using-issues--helper-orange?style=flat-square
2628
[issues-helper-url]: https://github.com/actions-cool/issues-helper
2729

30+
[codecov-image-url]: https://codecov.io/gh/alibaba/lowcode-engine/branch/main/graph/badge.svg
31+
[codecov-url]: https://codecov.io/gh/alibaba/lowcode-engine
32+
2833
</div>
2934

3035
[![](https://img.alicdn.com/imgextra/i2/O1CN01UhoS7C1sNNhySvfWi_!!6000000005754-2-tps-2878-1588.png)](https://lowcode-engine.cn)

packages/engine/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ An enterprise-class low-code technology stack with scale-out design
1414

1515
[![][issues-helper-image]][issues-helper-url] [![Issues need help][help-wanted-image]][help-wanted-url]
1616

17+
[![codecov][codecov-image-url]][codecov-url]
18+
1719
[npm-image]: https://img.shields.io/npm/v/@alilc/lowcode-engine.svg?style=flat-square
1820
[npm-url]: http://npmjs.org/package/@alilc/lowcode-engine
1921

@@ -25,6 +27,9 @@ An enterprise-class low-code technology stack with scale-out design
2527
[issues-helper-image]: https://img.shields.io/badge/using-issues--helper-orange?style=flat-square
2628
[issues-helper-url]: https://github.com/actions-cool/issues-helper
2729

30+
[codecov-image-url]: https://codecov.io/gh/alibaba/lowcode-engine/branch/main/graph/badge.svg
31+
[codecov-url]: https://codecov.io/gh/alibaba/lowcode-engine
32+
2833
</div>
2934

3035
[![](https://img.alicdn.com/imgextra/i2/O1CN01UhoS7C1sNNhySvfWi_!!6000000005754-2-tps-2878-1588.png)](http://lowcode-engine.cn)

packages/react-simulator-renderer/package.json

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)