diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..bab2835 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +type: docker +name: default + +trigger: + event: + - push + +steps: + - name: build + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - cd Sources/ + - dotnet restore Samples.sln + - dotnet build Samples.sln -c Release --no-restore + - dotnet publish Samples.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + + - name: tests + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - cd Sources/ + - dotnet restore Samples.sln + - dotnet test Samples.sln --no-restore + depends_on: [build]