From 334a9ecff44f778a5967f20627658615a499076a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Wed, 21 Sep 2022 09:46:00 +0000 Subject: [PATCH 01/28] update master-pipeline.yml --- .workflow/master-pipeline.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .workflow/master-pipeline.yml diff --git a/.workflow/master-pipeline.yml b/.workflow/master-pipeline.yml new file mode 100644 index 0000000..f39fc23 --- /dev/null +++ b/.workflow/master-pipeline.yml @@ -0,0 +1,49 @@ +version: '1.0' +name: master-pipeline +displayName: MasterPipeline +triggers: + trigger: auto + push: + branches: + include: + - master +stages: + - name: compile + displayName: 编译 + strategy: naturally + trigger: auto + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + nodeVersion: 14.16.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '# 安装依赖' + - npm install + - '# 执行构建' + - npm run build + artifacts: + - name: BUILD_ARTIFACT + path: + - ./dist + strategy: {} + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + dependArtifact: BUILD_ARTIFACT + artifactName: output + strategy: {} + dependsOn: build_nodejs + - name: release + displayName: 发布 + strategy: naturally + trigger: auto + steps: + - step: publish@release_artifacts + name: publish_release_artifacts + displayName: 发布 + dependArtifact: output + version: 1.0.0.0 + autoIncrement: true -- Gitee From b19ded9aa5743fa87d09cad6f96f7abfa6d32665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Wed, 21 Sep 2022 09:46:37 +0000 Subject: [PATCH 02/28] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20.w?= =?UTF-8?q?orkflow/master-pipeline.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .workflow/master-pipeline.yml | 49 ----------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 .workflow/master-pipeline.yml diff --git a/.workflow/master-pipeline.yml b/.workflow/master-pipeline.yml deleted file mode 100644 index f39fc23..0000000 --- a/.workflow/master-pipeline.yml +++ /dev/null @@ -1,49 +0,0 @@ -version: '1.0' -name: master-pipeline -displayName: MasterPipeline -triggers: - trigger: auto - push: - branches: - include: - - master -stages: - - name: compile - displayName: 编译 - strategy: naturally - trigger: auto - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - nodeVersion: 14.16.0 - commands: - - '# 设置NPM源,提升安装速度' - - npm config set registry https://registry.npmmirror.com - - '# 安装依赖' - - npm install - - '# 执行构建' - - npm run build - artifacts: - - name: BUILD_ARTIFACT - path: - - ./dist - strategy: {} - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - dependArtifact: BUILD_ARTIFACT - artifactName: output - strategy: {} - dependsOn: build_nodejs - - name: release - displayName: 发布 - strategy: naturally - trigger: auto - steps: - - step: publish@release_artifacts - name: publish_release_artifacts - displayName: 发布 - dependArtifact: output - version: 1.0.0.0 - autoIncrement: true -- Gitee From c0583c45c5874cf4ef0dbd339edb888c2aca4553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Wed, 21 Sep 2022 09:47:33 +0000 Subject: [PATCH 03/28] update .workflow/MasterPipeline.yml. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐旭 <22476705@qq.com> --- .workflow/MasterPipeline.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.workflow/MasterPipeline.yml b/.workflow/MasterPipeline.yml index 70a1845..b6d5be1 100644 --- a/.workflow/MasterPipeline.yml +++ b/.workflow/MasterPipeline.yml @@ -13,14 +13,19 @@ stages: nodeVersion: 14.16.0 # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 commands: - - cd vue-demo && npm install && rm -rf ./dist && npm run build + - # 设置NPM源,提升安装速度 + - npm config set registry https://registry.npmmirror.com + - # 安装依赖 + - npm install + - # 执行构建 + - npm run build # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 artifacts: # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - name: BUILD_ARTIFACT # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 path: - - ./vue-demo/dist + - ./dist - step: publish@general_artifacts name: publish_general_artifacts displayName: 上传制品 -- Gitee From 472fcb1ade4763e9fd414cc8baebaf6672736f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Wed, 21 Sep 2022 09:49:04 +0000 Subject: [PATCH 04/28] update .workflow/BranchPipeline.yml. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐旭 <22476705@qq.com> --- .workflow/BranchPipeline.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.workflow/BranchPipeline.yml b/.workflow/BranchPipeline.yml index cbe1b45..aac56c0 100644 --- a/.workflow/BranchPipeline.yml +++ b/.workflow/BranchPipeline.yml @@ -13,14 +13,19 @@ stages: nodeVersion: 14.16.0 # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 commands: - - cd vue-demo && npm install && rm -rf ./dist && npm run build + - # 设置NPM源,提升安装速度 + - npm config set registry https://registry.npmmirror.com + - # 安装依赖 + - npm install + - # 执行构建 + - npm run build # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 artifacts: # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - name: BUILD_ARTIFACT # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 path: - - ./vue-demo/dist + - ./dist - step: publish@general_artifacts name: publish_general_artifacts displayName: 上传制品 -- Gitee From dd2dacfe31433dc27aa474248f1dafcfe4525f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Wed, 21 Sep 2022 09:49:29 +0000 Subject: [PATCH 05/28] update .workflow/PRPipeline.yml. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐旭 <22476705@qq.com> --- .workflow/PRPipeline.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.workflow/PRPipeline.yml b/.workflow/PRPipeline.yml index c5cce54..5531c32 100644 --- a/.workflow/PRPipeline.yml +++ b/.workflow/PRPipeline.yml @@ -13,14 +13,19 @@ stages: nodeVersion: 14.16.0 # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 commands: - - cd vue-demo && npm install && rm -rf ./dist && npm run build + - # 设置NPM源,提升安装速度 + - npm config set registry https://registry.npmmirror.com + - # 安装依赖 + - npm install + - # 执行构建 + - npm run build # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 artifacts: # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - name: BUILD_ARTIFACT # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 path: - - ./vue-demo/dist + - ./dist - step: publish@general_artifacts name: publish_general_artifacts displayName: 上传制品 -- Gitee From 332335965f688d6cda45d0cbcd13284d75d3c56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=97=AD?= <22476705@qq.com> Date: Wed, 9 Nov 2022 07:45:01 +0000 Subject: [PATCH 06/28] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20.w?= =?UTF-8?q?orkflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .workflow/BranchPipeline.yml | 60 ------------------------------------ .workflow/MasterPipeline.yml | 58 ---------------------------------- .workflow/PRPipeline.yml | 43 -------------------------- 3 files changed, 161 deletions(-) delete mode 100644 .workflow/BranchPipeline.yml delete mode 100644 .workflow/MasterPipeline.yml delete mode 100644 .workflow/PRPipeline.yml diff --git a/.workflow/BranchPipeline.yml b/.workflow/BranchPipeline.yml deleted file mode 100644 index aac56c0..0000000 --- a/.workflow/BranchPipeline.yml +++ /dev/null @@ -1,60 +0,0 @@ -version: '1.0' -name: branch-pipeline -displayName: BranchPipeline -stages: - - stage: - name: compile - displayName: 编译 - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 - nodeVersion: 14.16.0 - # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 - commands: - - # 设置NPM源,提升安装速度 - - npm config set registry https://registry.npmmirror.com - - # 安装依赖 - - npm install - - # 执行构建 - - npm run build - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 - path: - - ./dist - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - # 上游构建任务定义的产物名,默认BUILD_ARTIFACT - dependArtifact: BUILD_ARTIFACT - # 构建产物制品库,默认default,系统默认创建 - artifactRepository: default - # 上传到制品库时的制品命名,默认build - artifactName: output - dependsOn: build_nodejs - - stage: - name: release - displayName: 发布 - steps: - - step: publish@release_artifacts - name: publish_release_artifacts - displayName: '发布' - # 上游上传制品任务的产出 - dependArtifact: output - # 发行版制品库,默认release,系统默认创建 - artifactRepository: release - # 发布制品版本号 - version: '1.0.0.0' - # 是否开启版本号自增,默认开启 - autoIncrement: true -triggers: - push: - branches: - exclude: - - master - include: - - .* diff --git a/.workflow/MasterPipeline.yml b/.workflow/MasterPipeline.yml deleted file mode 100644 index b6d5be1..0000000 --- a/.workflow/MasterPipeline.yml +++ /dev/null @@ -1,58 +0,0 @@ -version: '1.0' -name: master-pipeline -displayName: MasterPipeline -stages: - - stage: - name: compile - displayName: 编译 - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 - nodeVersion: 14.16.0 - # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 - commands: - - # 设置NPM源,提升安装速度 - - npm config set registry https://registry.npmmirror.com - - # 安装依赖 - - npm install - - # 执行构建 - - npm run build - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 - path: - - ./dist - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - # 上游构建任务定义的产物名,默认BUILD_ARTIFACT - dependArtifact: BUILD_ARTIFACT - # 构建产物制品库,默认default,系统默认创建 - artifactRepository: default - # 上传到制品库时的制品命名,默认build - artifactName: output - dependsOn: build_nodejs - - stage: - name: release - displayName: 发布 - steps: - - step: publish@release_artifacts - name: publish_release_artifacts - displayName: '发布' - # 上游上传制品任务的产出 - dependArtifact: output - # 发行版制品库,默认release,系统默认创建 - artifactRepository: release - # 发布制品版本号 - version: '1.0.0.0' - # 是否开启版本号自增,默认开启 - autoIncrement: true -triggers: - push: - branches: - include: - - master diff --git a/.workflow/PRPipeline.yml b/.workflow/PRPipeline.yml deleted file mode 100644 index 5531c32..0000000 --- a/.workflow/PRPipeline.yml +++ /dev/null @@ -1,43 +0,0 @@ -version: '1.0' -name: pr-pipeline -displayName: PRPipeline -stages: - - stage: - name: compile - displayName: 编译 - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 - nodeVersion: 14.16.0 - # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 - commands: - - # 设置NPM源,提升安装速度 - - npm config set registry https://registry.npmmirror.com - - # 安装依赖 - - npm install - - # 执行构建 - - npm run build - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 - path: - - ./dist - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - # 上游构建任务定义的产物名,默认BUILD_ARTIFACT - dependArtifact: BUILD_ARTIFACT - # 构建产物制品库,默认default,系统默认创建 - artifactRepository: default - # 上传到制品库时的制品命名,默认build - artifactName: output - dependsOn: build_nodejs -triggers: - pr: - branches: - include: - - master -- Gitee From 2d21eb81d04c039d09e6b28dffd67c456818d7a5 Mon Sep 17 00:00:00 2001 From: Admin <10531940+shenzhen-hexun-huagu_0@user.noreply.gitee.com> Date: Thu, 13 Apr 2023 13:15:46 +0000 Subject: [PATCH 07/28] create pipeline-20230413.yml --- .workflow/pipeline-20230413.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .workflow/pipeline-20230413.yml diff --git a/.workflow/pipeline-20230413.yml b/.workflow/pipeline-20230413.yml new file mode 100644 index 0000000..d3d2c60 --- /dev/null +++ b/.workflow/pipeline-20230413.yml @@ -0,0 +1,36 @@ +version: '1.0' +name: pipeline-20230413 +displayName: pipeline-20230413 +triggers: + trigger: auto + push: + branches: + prefix: + - '' +stages: + - name: stage-dfb5662b + displayName: 未命名 + strategy: naturally + trigger: auto + executor: [] + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + nodeVersion: 14.16.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '' + - '# 执行编译命令' + - npm install && npm run build + artifacts: + - name: BUILD_ARTIFACT + path: + - ./dist + caches: + - ~/.npm + - ~/.yarn + notify: [] + strategy: + retry: '0' -- Gitee From 95c0f36e215dbfd51dcf49733cd30e726236f4e2 Mon Sep 17 00:00:00 2001 From: nicexmx Date: Tue, 19 Dec 2023 04:20:00 +0000 Subject: [PATCH 08/28] update README.md. Signed-off-by: nicexmx --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c98313..c408592 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # React, webpack -Full documentation about it [here](https://mochajs.org/#-require-module-r-module) +Full documentation about it [here](fhttps://mochajs.org/#-require-module-r-module) ## Commands -- Gitee From 997e7309850fa31460d131f9fbed9a700191ac11 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 03:18:14 +0000 Subject: [PATCH 09/28] update package.json. Signed-off-by: gaojunjienpu --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index af28bc9..e868a8c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "webpack", "start": "npm run build && opn index.html", - "test": "mocha --require @babel/register --reporter mochawesome --exit" + "test": "mocha --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=junit.xml --exit" }, "directories": { "lib": "./lib", @@ -16,6 +16,7 @@ }, "dependencies": { "express": "^4.18.1", + "mocha-junit-reporter": "^2.2.1", "opn-cli": "^5.0.0", "react": "^17.0.2", "react-dom": "^17.0.2" -- Gitee From e52000af532b9e28cd2dc6b035c5afa6c6973251 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 03:18:48 +0000 Subject: [PATCH 10/28] add default pipeline template yaml --- .workflow/branch-pipeline.yml | 51 +++++++++++++++++++++++++++++++++++ .workflow/master-pipeline.yml | 49 +++++++++++++++++++++++++++++++++ .workflow/pr-pipeline.yml | 36 +++++++++++++++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 .workflow/branch-pipeline.yml create mode 100644 .workflow/master-pipeline.yml create mode 100644 .workflow/pr-pipeline.yml diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml new file mode 100644 index 0000000..1128d8a --- /dev/null +++ b/.workflow/branch-pipeline.yml @@ -0,0 +1,51 @@ +version: '1.0' +name: branch-pipeline +displayName: BranchPipeline +stages: + - stage: + name: compile + displayName: 编译 + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 + nodeVersion: 14.16.0 + # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 + commands: + - npm install && rm -rf ./dist && npm run build + # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 + artifacts: + # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 + - name: BUILD_ARTIFACT + # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 + path: + - ./dist + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + # 上游构建任务定义的产物名,默认BUILD_ARTIFACT + dependArtifact: BUILD_ARTIFACT + # 上传到制品库时的制品命名,默认output + artifactName: output + dependsOn: build_nodejs + - stage: + name: release + displayName: 发布 + steps: + - step: publish@release_artifacts + name: publish_release_artifacts + displayName: '发布' + # 上游上传制品任务的产出 + dependArtifact: output + # 发布制品版本号 + version: '1.0.0.0' + # 是否开启版本号自增,默认开启 + autoIncrement: true +triggers: + push: + branches: + exclude: + - master + include: + - .* diff --git a/.workflow/master-pipeline.yml b/.workflow/master-pipeline.yml new file mode 100644 index 0000000..8faf2bc --- /dev/null +++ b/.workflow/master-pipeline.yml @@ -0,0 +1,49 @@ +version: '1.0' +name: master-pipeline +displayName: MasterPipeline +stages: + - stage: + name: compile + displayName: 编译 + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 + nodeVersion: 14.16.0 + # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 + commands: + - npm install && rm -rf ./dist && npm run build + # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 + artifacts: + # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 + - name: BUILD_ARTIFACT + # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 + path: + - ./dist + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + # 上游构建任务定义的产物名,默认BUILD_ARTIFACT + dependArtifact: BUILD_ARTIFACT + # 上传到制品库时的制品命名,默认output + artifactName: output + dependsOn: build_nodejs + - stage: + name: release + displayName: 发布 + steps: + - step: publish@release_artifacts + name: publish_release_artifacts + displayName: '发布' + # 上游上传制品任务的产出 + dependArtifact: output + # 发布制品版本号 + version: '1.0.0.0' + # 是否开启版本号自增,默认开启 + autoIncrement: true +triggers: + push: + branches: + include: + - master diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml new file mode 100644 index 0000000..1a05dd0 --- /dev/null +++ b/.workflow/pr-pipeline.yml @@ -0,0 +1,36 @@ +version: '1.0' +name: pr-pipeline +displayName: PRPipeline +stages: + - stage: + name: compile + displayName: 编译 + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 + nodeVersion: 14.16.0 + # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 + commands: + - npm install && rm -rf ./dist && npm run build + # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 + artifacts: + # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 + - name: BUILD_ARTIFACT + # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 + path: + - ./dist + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + # 上游构建任务定义的产物名,默认BUILD_ARTIFACT + dependArtifact: BUILD_ARTIFACT + # 上传到制品库时的制品命名,默认output + artifactName: output + dependsOn: build_nodejs +triggers: + pr: + branches: + include: + - master -- Gitee From 4fe87da8dbc68a0148e02cfebdc9e7e115b28d64 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 03:32:27 +0000 Subject: [PATCH 11/28] update branch-pipeline.yml --- .workflow/branch-pipeline.yml | 72 ++++++++++++++--------------------- 1 file changed, 29 insertions(+), 43 deletions(-) diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml index 1128d8a..9d8df59 100644 --- a/.workflow/branch-pipeline.yml +++ b/.workflow/branch-pipeline.yml @@ -1,51 +1,37 @@ version: '1.0' name: branch-pipeline displayName: BranchPipeline -stages: - - stage: - name: compile - displayName: 编译 - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 - nodeVersion: 14.16.0 - # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 - commands: - - npm install && rm -rf ./dist && npm run build - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 - path: - - ./dist - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - # 上游构建任务定义的产物名,默认BUILD_ARTIFACT - dependArtifact: BUILD_ARTIFACT - # 上传到制品库时的制品命名,默认output - artifactName: output - dependsOn: build_nodejs - - stage: - name: release - displayName: 发布 - steps: - - step: publish@release_artifacts - name: publish_release_artifacts - displayName: '发布' - # 上游上传制品任务的产出 - dependArtifact: output - # 发布制品版本号 - version: '1.0.0.0' - # 是否开启版本号自增,默认开启 - autoIncrement: true triggers: + trigger: auto push: branches: - exclude: - - master include: - .* + exclude: + - master +stages: + - name: compile + displayName: 编译 + strategy: naturally + trigger: auto + steps: + - step: ut@nodejs + name: unit_test_nodejs + displayName: Nodejs 单元测试 + nodeVersion: 14.16.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '# 在这里输入测试命令' + - npm install && npm run test + report: + path: . + file: junit.xml + index: junit.xml + checkpoints: [] + caches: + - ~/.npm + - ~/.yarn + notify: [] + strategy: + retry: '0' -- Gitee From 0df5a80e1cb06c15e698b4f1653cc47ee54f8e07 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:10:53 +0000 Subject: [PATCH 12/28] update branch-pipeline.yml --- .workflow/branch-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml index 9d8df59..15e1382 100644 --- a/.workflow/branch-pipeline.yml +++ b/.workflow/branch-pipeline.yml @@ -23,7 +23,7 @@ stages: - '# 设置NPM源,提升安装速度' - npm config set registry https://registry.npmmirror.com - '# 在这里输入测试命令' - - npm install && npm run test + - npm install && npm run test || true report: path: . file: junit.xml -- Gitee From d94ff42bac52dcace7228bc9e3f12d1060161c64 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:12:26 +0000 Subject: [PATCH 13/28] update branch-pipeline.yml --- .workflow/branch-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml index 15e1382..1926930 100644 --- a/.workflow/branch-pipeline.yml +++ b/.workflow/branch-pipeline.yml @@ -18,7 +18,7 @@ stages: - step: ut@nodejs name: unit_test_nodejs displayName: Nodejs 单元测试 - nodeVersion: 14.16.0 + nodeVersion: 20.10.0 commands: - '# 设置NPM源,提升安装速度' - npm config set registry https://registry.npmmirror.com -- Gitee From 281529f37c95d01f82bf70b5fd2a4305def0dd96 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:19:56 +0000 Subject: [PATCH 14/28] add junit.xml. Signed-off-by: gaojunjienpu --- junit.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 junit.xml diff --git a/junit.xml b/junit.xml new file mode 100644 index 0000000..a7f8d3b --- /dev/null +++ b/junit.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file -- Gitee From 7c8a3391b621149923a92ef0d5e7f4b0795d9def Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:20:30 +0000 Subject: [PATCH 15/28] update branch-pipeline.yml --- .workflow/branch-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml index 1926930..ce2fb18 100644 --- a/.workflow/branch-pipeline.yml +++ b/.workflow/branch-pipeline.yml @@ -23,7 +23,7 @@ stages: - '# 设置NPM源,提升安装速度' - npm config set registry https://registry.npmmirror.com - '# 在这里输入测试命令' - - npm install && npm run test || true + - ls report: path: . file: junit.xml -- Gitee From 0ed3a85d56c588f90a31ba0807c23919bbadd522 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:28:55 +0000 Subject: [PATCH 16/28] update package.json. Signed-off-by: gaojunjienpu --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e868a8c..134c84e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "webpack", "start": "npm run build && opn index.html", - "test": "mocha --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=junit.xml --exit" + "test": "mocha --require @babel/register --reporter mochawesome --exit" }, "directories": { "lib": "./lib", -- Gitee From afa4e653a6082c2d07e1aa990c0a6b294bcbb4ac Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:32:24 +0000 Subject: [PATCH 17/28] update branch-pipeline.yml --- .workflow/branch-pipeline.yml | 72 ++++++++++++++--------------------- 1 file changed, 29 insertions(+), 43 deletions(-) diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml index 1128d8a..4bd33d4 100644 --- a/.workflow/branch-pipeline.yml +++ b/.workflow/branch-pipeline.yml @@ -1,51 +1,37 @@ version: '1.0' name: branch-pipeline displayName: BranchPipeline -stages: - - stage: - name: compile - displayName: 编译 - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 - nodeVersion: 14.16.0 - # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 - commands: - - npm install && rm -rf ./dist && npm run build - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 - path: - - ./dist - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - # 上游构建任务定义的产物名,默认BUILD_ARTIFACT - dependArtifact: BUILD_ARTIFACT - # 上传到制品库时的制品命名,默认output - artifactName: output - dependsOn: build_nodejs - - stage: - name: release - displayName: 发布 - steps: - - step: publish@release_artifacts - name: publish_release_artifacts - displayName: '发布' - # 上游上传制品任务的产出 - dependArtifact: output - # 发布制品版本号 - version: '1.0.0.0' - # 是否开启版本号自增,默认开启 - autoIncrement: true triggers: + trigger: auto push: branches: - exclude: - - master include: - .* + exclude: + - master +stages: + - name: compile + displayName: 编译 + strategy: naturally + trigger: auto + steps: + - step: ut@nodejs + name: unit_test_nodejs + displayName: Nodejs 单元测试 + nodeVersion: 20.10.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '# 在这里输入测试命令' + - npm install && npm run test + report: + path: mochawesome-report + file: mochawesome.json + index: mochawesome.html + checkpoints: [] + caches: + - ~/.npm + - ~/.yarn + notify: [] + strategy: + retry: '0' -- Gitee From 18b702dd22cee6e73b3c29d2d9c6d4908ef3f2ae Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:34:53 +0000 Subject: [PATCH 18/28] update branch-pipeline.yml --- .workflow/branch-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml index 4bd33d4..e5c999d 100644 --- a/.workflow/branch-pipeline.yml +++ b/.workflow/branch-pipeline.yml @@ -26,7 +26,7 @@ stages: - npm install && npm run test report: path: mochawesome-report - file: mochawesome.json + file: mochawesome.html index: mochawesome.html checkpoints: [] caches: -- Gitee From 8334760679e0919ee3963c9357018064349e3ea4 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 05:51:58 +0000 Subject: [PATCH 19/28] create pr-pipeline.yml --- .workflow/pr-pipeline.yml | 55 +++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 1a05dd0..3e22ba1 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -1,36 +1,35 @@ version: '1.0' name: pr-pipeline displayName: PRPipeline -stages: - - stage: - name: compile - displayName: 编译 - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 - nodeVersion: 14.16.0 - # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 - commands: - - npm install && rm -rf ./dist && npm run build - # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 - artifacts: - # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 - - name: BUILD_ARTIFACT - # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 - path: - - ./dist - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - # 上游构建任务定义的产物名,默认BUILD_ARTIFACT - dependArtifact: BUILD_ARTIFACT - # 上传到制品库时的制品命名,默认output - artifactName: output - dependsOn: build_nodejs triggers: + trigger: auto pr: branches: include: - master +stages: + - name: compile + displayName: 编译 + strategy: naturally + trigger: auto + steps: + - step: ut@nodejs + name: unit_test_nodejs + displayName: Nodejs 单元测试 + nodeVersion: 20.10.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '# 在这里输入测试命令' + - npm install && npm run test + report: + path: mochawesome-report + file: mochawesome.json + index: mochawesome.html + checkpoints: [] + caches: + - ~/.npm + - ~/.yarn + notify: [] + strategy: + retry: '0' -- Gitee From ced00d6993cde9c536625bb141de9f9a1f3e3995 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:08:48 +0000 Subject: [PATCH 20/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 3e22ba1..3e2dfc8 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -26,6 +26,10 @@ stages: path: mochawesome-report file: mochawesome.json index: mochawesome.html + artifacts: + - name: BUILD_ARTIFACT + path: + - ./mochawesome-report checkpoints: [] caches: - ~/.npm @@ -33,3 +37,17 @@ stages: notify: [] strategy: retry: '0' + - name: stage-5e6b840d + displayName: 未命名 + strategy: naturally + trigger: auto + executor: [] + steps: + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + dependArtifact: BUILD_ARTIFACT + artifactName: output + notify: [] + strategy: + retry: '0' -- Gitee From bbca6c884c23fab781c986eaec168957deced93b Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:12:32 +0000 Subject: [PATCH 21/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 3e2dfc8..2de3daf 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -38,7 +38,7 @@ stages: strategy: retry: '0' - name: stage-5e6b840d - displayName: 未命名 + displayName: upload strategy: naturally trigger: auto executor: [] -- Gitee From 4ec9811a9869831c792d375fd4f37863196a89f2 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:15:58 +0000 Subject: [PATCH 22/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 2de3daf..7f79215 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -26,10 +26,6 @@ stages: path: mochawesome-report file: mochawesome.json index: mochawesome.html - artifacts: - - name: BUILD_ARTIFACT - path: - - ./mochawesome-report checkpoints: [] caches: - ~/.npm @@ -37,17 +33,29 @@ stages: notify: [] strategy: retry: '0' - - name: stage-5e6b840d + - name: stage-94c96ed0 displayName: upload strategy: naturally trigger: auto executor: [] steps: - - step: publish@general_artifacts - name: publish_general_artifacts - displayName: 上传制品 - dependArtifact: BUILD_ARTIFACT - artifactName: output + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + nodeVersion: 14.16.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '' + - '# 执行编译命令' + - npm install && npm run test + artifacts: + - name: BUILD_ARTIFACT + path: + - ./mochawesome-report + caches: + - ~/.npm + - ~/.yarn notify: [] strategy: retry: '0' -- Gitee From dc4667baa2ff470a38a2cac068229d84b6b39763 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:18:27 +0000 Subject: [PATCH 23/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 7f79215..f706d9d 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -42,7 +42,7 @@ stages: - step: build@nodejs name: build_nodejs displayName: Nodejs 构建 - nodeVersion: 14.16.0 + nodeVersion: 20.10.0 commands: - '# 设置NPM源,提升安装速度' - npm config set registry https://registry.npmmirror.com @@ -59,3 +59,17 @@ stages: notify: [] strategy: retry: '0' + - name: stage-b663b80c + displayName: upload + strategy: naturally + trigger: auto + executor: [] + steps: + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + dependArtifact: BUILD_ARTIFACT + artifactName: output + notify: [] + strategy: + retry: '0' -- Gitee From a390f3d3c31a83f8a5315fedd44e222d5f85c348 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:21:43 +0000 Subject: [PATCH 24/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index f706d9d..b6f496c 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -34,7 +34,7 @@ stages: strategy: retry: '0' - name: stage-94c96ed0 - displayName: upload + displayName: build strategy: naturally trigger: auto executor: [] @@ -52,7 +52,7 @@ stages: artifacts: - name: BUILD_ARTIFACT path: - - ./mochawesome-report + - ./mochawesome-report/mochawesome.html caches: - ~/.npm - ~/.yarn -- Gitee From e337de5270bd674ec156c01fe1985cfc9e7fd154 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:27:39 +0000 Subject: [PATCH 25/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index b6f496c..aaace6a 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -8,8 +8,8 @@ triggers: include: - master stages: - - name: compile - displayName: 编译 + - name: build + displayName: build strategy: naturally trigger: auto steps: @@ -33,8 +33,8 @@ stages: notify: [] strategy: retry: '0' - - name: stage-94c96ed0 - displayName: build + - name: test + displayName: test strategy: naturally trigger: auto executor: [] @@ -59,7 +59,7 @@ stages: notify: [] strategy: retry: '0' - - name: stage-b663b80c + - name: upload displayName: upload strategy: naturally trigger: auto -- Gitee From 63dc2febb707be99bbdde5486357f767e2777a66 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:29:14 +0000 Subject: [PATCH 26/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index aaace6a..609a7dd 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -8,8 +8,8 @@ triggers: include: - master stages: - - name: build - displayName: build + - name: test + displayName: test strategy: naturally trigger: auto steps: @@ -26,39 +26,18 @@ stages: path: mochawesome-report file: mochawesome.json index: mochawesome.html - checkpoints: [] - caches: - - ~/.npm - - ~/.yarn - notify: [] - strategy: - retry: '0' - - name: test - displayName: test - strategy: naturally - trigger: auto - executor: [] - steps: - - step: build@nodejs - name: build_nodejs - displayName: Nodejs 构建 - nodeVersion: 20.10.0 - commands: - - '# 设置NPM源,提升安装速度' - - npm config set registry https://registry.npmmirror.com - - '' - - '# 执行编译命令' - - npm install && npm run test artifacts: - name: BUILD_ARTIFACT path: - ./mochawesome-report/mochawesome.html + checkpoints: [] caches: - ~/.npm - ~/.yarn notify: [] strategy: retry: '0' + - name: upload displayName: upload strategy: naturally -- Gitee From 2de6734eb4358f4b1782920a61426cd021cc97e0 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:35:29 +0000 Subject: [PATCH 27/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 609a7dd..20d696d 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -26,10 +26,6 @@ stages: path: mochawesome-report file: mochawesome.json index: mochawesome.html - artifacts: - - name: BUILD_ARTIFACT - path: - - ./mochawesome-report/mochawesome.html checkpoints: [] caches: - ~/.npm @@ -37,13 +33,32 @@ stages: notify: [] strategy: retry: '0' - - name: upload displayName: upload strategy: naturally trigger: auto executor: [] steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + nodeVersion: 14.16.0 + commands: + - '# 设置NPM源,提升安装速度' + - npm config set registry https://registry.npmmirror.com + - '' + - '# 执行编译命令' + - npm install && npm run test + artifacts: + - name: BUILD_ARTIFACT + path: + - ./mochawesome-report + caches: + - ~/.npm + - ~/.yarn + notify: [] + strategy: + retry: '0' - step: publish@general_artifacts name: publish_general_artifacts displayName: 上传制品 @@ -52,3 +67,4 @@ stages: notify: [] strategy: retry: '0' + dependsOn: build_nodejs -- Gitee From 89ef7a2acf14dc52614ea718f05ba97b1bf91466 Mon Sep 17 00:00:00 2001 From: gaojunjienpu Date: Thu, 13 Mar 2025 06:47:59 +0000 Subject: [PATCH 28/28] update pr-pipeline.yml --- .workflow/pr-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml index 20d696d..4fc9188 100644 --- a/.workflow/pr-pipeline.yml +++ b/.workflow/pr-pipeline.yml @@ -42,7 +42,7 @@ stages: - step: build@nodejs name: build_nodejs displayName: Nodejs 构建 - nodeVersion: 14.16.0 + nodeVersion: 20.10.0 commands: - '# 设置NPM源,提升安装速度' - npm config set registry https://registry.npmmirror.com -- Gitee