From 8140ddae393e34240bd4506cb65564b5f6333b55 Mon Sep 17 00:00:00 2001 From: Micheal Colhoun Date: Sat, 4 Sep 2021 19:55:11 +0100 Subject: [PATCH] Create dotnet.yml --- .github/workflows/dotnet.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..13fd8db --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + env: + BUILD_CONFIG: 'Release' + SOLUTION: 'DarkUI.sln' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.5 + + - name: Restore dependencies + run: nuget restore $SOLUTION + + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + + - name: Build + run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore + + - name: Run tests + run: dotnet test /p:Configuration=$env:BUILD_CONFIG --no-restore --no-build --verbosity normal