From 01dc4505f515109d78518e981d76c81cd27a16cb Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sat, 31 Dec 2022 21:45:18 +0100 Subject: [PATCH] Adding a CI file :white_check_mark: --- .drone.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .drone.yaml 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]