Update and rename dotnet-desktop.yml to check.yml
This commit is contained in:
parent
dcaecf04f0
commit
c0143c5bf5
1 changed files with 18 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: .NET Core Desktop
|
name: Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -26,18 +26,30 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.x
|
dotnet-version: 5.0.x
|
||||||
|
|
||||||
|
- name: Restore Project
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: dotnet build --no-restore
|
||||||
|
|
||||||
|
- name: Test Project
|
||||||
|
run: dotnet test --no-build --verbosity normal
|
||||||
|
|
||||||
- name: Setup MSBuild
|
- name: Setup MSBuild
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
|
||||||
- name: Execute Unit Tests
|
- name: Restore Solution
|
||||||
run: dotnet test
|
|
||||||
|
|
||||||
- name: Restore Application
|
|
||||||
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
||||||
env:
|
env:
|
||||||
Configuration: ${{ matrix.configuration }}
|
Configuration: ${{ matrix.configuration }}
|
||||||
|
|
||||||
|
- name: Build Solution
|
||||||
|
run: msbuild $env:Solution_Name /t:Build /p:Configuration=$env:Configuration
|
||||||
|
env:
|
||||||
|
Configuration: ${{ matrix.configuration }}
|
||||||
|
|
Loading…
Reference in a new issue