diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 0000000..94f2977 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,26 @@ +name: Build and Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Setup NuGet + uses: nuget/setup-nuget@v2 + - name: Setup VSTest.console.exe + uses: darenm/Setup-VSTest@v1.2 + - name: Restore dependencies + run: nuget restore FluentInfo.sln + - name: Build Solution + run: msbuild.exe FluentInfo.sln /p:platform="x64" /p:configuration="Release" /p:PublishReadyToRun=false + - name: Run Tests + run: vstest.console.exe .\FluentInfoTest\bin\x64\Release\net8.0-windows\FluentInfoTest.dll