登录
ZH▾
语言
下载
测试版 此语言为测试版:由 AI 翻译和检查,尚未经过母语人士审校。

Example: build and test a .NET solution on a Windows runner

MT
MCDock Team MCDock 团队 · MCDock · 5 天前

A starting point you can copy into .mcdock/pipeline.yml:

stages: [build, test]
jobs:
  build:
    stage: build
    runs-on: [windows]
    script:
      - dotnet build -c Release
    artifacts: [bin/Release/**]
  tests:
    stage: test
    runs-on: [windows]
    script:
      - dotnet test --logger "junit;LogFilePath=results.xml"
    junit: [**/results.xml]

Then add mcdock/pipeline as a required status check on main, so pull requests merge only with a green build. More in Daily use for DevOps.

▲ 0

登录 或 创建免费账户 后即可回复。