Skip to content

Update dotnet.yml

Update dotnet.yml #5

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build_and_test:
name: Build and Test .NET Libraries
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [8.0.x, 4.8]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET 8
if: matrix.dotnet-version == '8.0.x'
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup .NET Framework 4.8
if: matrix.dotnet-version == '4.8'
run: |
echo "Using pre-installed .NET Framework 4.8"
- name: Restore dependencies .NET 8
if: matrix.dotnet-version == '8.0.x'
run: dotnet restore
- name: Restore dependencies .NET 4.8
if: matrix.dotnet-version == '4.8'
run: nuget restore ObjectFillerNET.sln
- name: Build .NET 8
if: matrix.dotnet-version == '8.0.x'
run: dotnet build --configuration Release --no-restore
- name: Build .NET 4.8
if: matrix.dotnet-version == '4.8'
run: "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" /p:Configuration=Release

Check failure on line 50 in .github/workflows/dotnet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet.yml

Invalid workflow file

You have an error in your yaml syntax on line 50
- name: Test .NET 8
if: matrix.dotnet-version == '8.0.x'
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Test .NET 4.8
if: matrix.dotnet-version == '4.8'
run: |
""C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" Tynamix.ObjectFiller.Test\bin\Release\net461\Tynamix.ObjectFiller.Test.dll