CreamInstaller/.github/workflows/dotnet-desktop.yml

44 lines
835 B
YAML
Raw Normal View History

2021-08-09 15:07:41 +05:00
name: .NET Core Desktop
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
2021-08-09 15:12:38 +05:00
runs-on: windows-latest
2021-08-09 15:07:41 +05:00
env:
2021-08-09 15:12:38 +05:00
Solution_Name: CreamInstaller.sln
Test_Project_Path: CreamInstaller\CreamInstaller.csproj
2021-08-09 15:07:41 +05:00
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
2021-08-09 15:12:38 +05:00
- name: Install .NET
2021-08-09 15:07:41 +05:00
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
2021-08-09 15:12:38 +05:00
- name: Setup MSBuild
2021-08-09 15:07:41 +05:00
uses: microsoft/setup-msbuild@v1.0.2
2021-08-09 15:12:38 +05:00
- name: Execute Unit Tests
2021-08-09 15:07:41 +05:00
run: dotnet test
2021-08-09 15:12:38 +05:00
- name: Restore Application
2021-08-09 15:07:41 +05:00
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}