Update dotnet-windows.yml

This commit is contained in:
Felix Weiß
2022-06-21 10:07:50 +02:00
committed by GitHub
parent 3a5cdb11c2
commit 881253130b

View File

@@ -1,4 +1,4 @@
name: .NET
name: .NET Windows
on:
push:
@@ -8,18 +8,16 @@ on:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '3.0', '3.1.x', '5.0.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- uses: actions/checkout@v3
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
# You can test your matrix by printing the current dotnet version
- name: Display dotnet version
run: dotnet --version