在 gitlab ci job 中执行 dotnet test. -c Release --no-restore
命令无任何输出
$ dotnet test -c Release --no-restore
Cleaning up project directory and file based variables
00:00
Job succeeded
与 https://github.com/dotnet/core/issues/7412 遇到的问题一样,请问如何解决?
是 nuget packages 文件夹不存在引起的,修改 .gitlab-ci.yml 的配置通过 cache 加载 packages 后解决了
backend-test:
cache:
- key: "nuget"
paths:
- .nuget
policy: pull
script:
- export NUGET_PACKAGES=$(pwd)/.nuget/packages
- dotnet test -c Release --no-restore