我已经设置了一个 Azure 管道每天运行两次 GUI 测试。根据文档,它应该仅在代码发生更改时运行,但它始终会运行。
这是我在“azure-pipelines-cypress.xml”中的 cron 计划
schedules:
- cron: "0 10 * * *"
displayName: Daily 12:00 build (UTC 10:00)
branches:
include:
- master
Run Code Online (Sandbox Code Playgroud)
always: boolean # 是否始终运行管道,或者仅当自上次运行以来源代码发生更改时才运行。默认为 false。
这只是一个错误还是我错过了什么?
我正在尝试将 Angular 8 项目升级到 Angular 9,但出现以下错误:
Run Code Online (Sandbox Code Playgroud)fail: Microsoft.AspNetCore.SpaServices[0] ERROR in ./src/main.ts Module build failed (from ./node_modules/@ngtools/webpack/src/index.js): Error:TypeScript 编译中缺少 C:\redacted\redacted\redacted\src\main.ts。请通过“files”或“include”属性确保它位于您的 tsconfig 中。在 AngularCompilerPlugin.getCompiledFile (C:\redacted\redacted\redacted\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:933:23) 位于 C:\redacted\redacted\redacted\node_modules@ngtools\webpack\src\loader。 processTicksAndRejections 处的 js:41:31 (internal/process/task_queues.js:89:5) ./src/polyfills.ts 中的错误模块构建失败(来自 ./node_modules/@ngtools/webpack/src/index.js):错误:TypeScript 编译中缺少 C:\redacted\redacted\redacted\src\polyfills.ts。请通过“files”或“include”属性确保它位于您的 tsconfig 中。在 AngularCompilerPlugin.getCompiledFile (C:\redacted\redacted\redacted\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:933:23) 位于 C:\redacted\redacted\redacted\node_modules@ngtools\webpack\src\loader。 js:41:31 在 processTicksAndRejections (内部/process/task_queues.js:89:5)
我知道 Stackoverflow 上有一些类似的帖子,但似乎没有一个答案适合我的情况。我已将 ""preserveSymlinks": true" 插入 angular.json 中,并尝试将整个项目移动到 c: 。main.ts 和 polyfills.ts 位于何处,但它说它们不在,因此相当混乱。
角度.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"our-project": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
"build": { …Run Code Online (Sandbox Code Playgroud)