Adds testing (#118)

This commit is contained in:
Kamron Batman 2020-04-27 19:27:05 -07:00 • committed by GitHub
parent e200f37e75
commit 60ee5eadd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 143 additions and 13 deletions

View file

@ -67,10 +67,29 @@ jobs:
- run:
name: Building with Analyzers
command: dotnet build -c Analyze /p:PublishProfile=Linux
tests:
description: Unit Tests
executor: linux-build
steps:
- run: rm -rf ~/project/.git # CircleCI git caching is likely broken
- checkout
- restore_cache:
keys:
- dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
- run:
name: Install ModernUO dependencies
command: dotnet restore
- save_cache:
paths:
- ~/.nuget/packages
key: dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
- run:
name: Running unit tests
command: dotnet test
workflows:
build-and-test:
jobs:
- build_linux
- build_windows
- code_styling
- tests