Se connecter
FR▾
Langue
Télécharger
Bêta Cette langue est en bêta : elle a été traduite et vérifiée par une IA et n'a pas encore été relue par une personne de langue maternelle.

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

MT
MCDock Team Équipe MCDock · MCDock · il y a 5 jours

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