diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..ce1c8b2 --- /dev/null +++ b/.drone.yaml @@ -0,0 +1,22 @@ +kind: pipeline +type: docker +name: default + +trigger: + event: + - push + +steps: + - name: build + image: mcr.microsoft.com/dotnet/sdk:6.0 + commands: + - cd src/CraftSharp + - dotnet restore CraftSharp.sln + - dotnet build CraftSharp.sln -c Release --no-restore + - name: tests + image: mcr.microsoft.com/dotnet/sdk:6.0 + commands: + - cd src/CraftSharp + - dotnet restore CraftSharp.sln + - dotnet test CraftSharp.sln --no-restore + depends_on: [build]