2021-09-04 21:55:11 +03:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_CONFIG: 'Release'
|
|
|
|
SOLUTION: 'DarkUI.sln'
|
2021-09-04 22:00:41 +03:00
|
|
|
runs-on: windows-latest
|
2021-09-04 21:55:11 +03:00
|
|
|
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
|