要在 GitLab CI/CD 中运行 `npm run build:test` 并显示日志,你需要在 `.gitlab-ci.yml` 文件中添加以下配置: ```yaml build: stage: build script: - npm run build:test only: - branches ``` 这将在每次提交到分支时触发构建,并在控制台输出 `npm run build:test` 的日志。 [2024-02-23 10:56:47 | AI写代码神器 | 102点数解答]