diff --git a/.github/workflows/dotnetbuildtest.yml b/.github/workflows/dotnetbuildtest.yml new file mode 100644 index 000000000..ac6f60ca2 --- /dev/null +++ b/.github/workflows/dotnetbuildtest.yml @@ -0,0 +1,31 @@ +# 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: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + name: build-and-test-${{matrix.os}} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + run: dotnet restore src\\Vts.sln + - name: Build + run: dotnet build src\\Vts.sln --no-restore + - name: Test + run: dotnet test src\\Vts.sln --no-build --verbosity normal