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

MT
MCDock Team MCDock team · MCDock · 1 d ago

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