From 8dd322ba9e9e5015e77bf2d0e5bfa364d73556fb Mon Sep 17 00:00:00 2001 From: Lisa Glover Date: Fri, 6 Sep 2024 14:53:27 -0700 Subject: [PATCH 1/3] Create dotnetbuildtest.yml --- .github/workflows/dotnetbuildtest.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dotnetbuildtest.yml diff --git a/.github/workflows/dotnetbuildtest.yml b/.github/workflows/dotnetbuildtest.yml new file mode 100644 index 000000000..60545b6a7 --- /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 + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal From 2f935f2f796e9feb88f0a6b613ba3131f978fcc7 Mon Sep 17 00:00:00 2001 From: Lisa Glover Date: Fri, 6 Sep 2024 15:09:43 -0700 Subject: [PATCH 2/3] Update dotnetbuildtest.yml Added the folder and solution file name --- .github/workflows/dotnetbuildtest.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnetbuildtest.yml b/.github/workflows/dotnetbuildtest.yml index 60545b6a7..a72ecb6b8 100644 --- a/.github/workflows/dotnetbuildtest.yml +++ b/.github/workflows/dotnetbuildtest.yml @@ -24,8 +24,8 @@ jobs: with: dotnet-version: 6.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore src\Vts.sln - name: Build - run: dotnet build --no-restore + run: dotnet build src\Vts.sln --no-restore - name: Test - run: dotnet test --no-build --verbosity normal + run: dotnet test src\Vts.sln --no-build --verbosity normal From 2cf7c8057b9ffc98cfa68480b1937515b965ff35 Mon Sep 17 00:00:00 2001 From: Lisa Glover Date: Fri, 6 Sep 2024 15:11:45 -0700 Subject: [PATCH 3/3] Update dotnetbuildtest.yml Corrected the syntax --- .github/workflows/dotnetbuildtest.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnetbuildtest.yml b/.github/workflows/dotnetbuildtest.yml index a72ecb6b8..ac6f60ca2 100644 --- a/.github/workflows/dotnetbuildtest.yml +++ b/.github/workflows/dotnetbuildtest.yml @@ -24,8 +24,8 @@ jobs: with: dotnet-version: 6.0.x - name: Restore dependencies - run: dotnet restore src\Vts.sln + run: dotnet restore src\\Vts.sln - name: Build - run: dotnet build src\Vts.sln --no-restore + run: dotnet build src\\Vts.sln --no-restore - name: Test - run: dotnet test src\Vts.sln --no-build --verbosity normal + run: dotnet test src\\Vts.sln --no-build --verbosity normal