From cab30a79eb510d2bed77be23ae5ebfb9aa4051a8 Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Tue, 1 Jul 2025 20:03:32 +0700 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c383e46..095658c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -10,21 +10,23 @@ on: branches: [ "master" ] jobs: - build: - + build-and-test: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 9.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore --configuration Release - - name: Test API - run: dotnet test ./Govor.API.Tests/Govor.API.Tests.csproj + - name: Checkout code + uses: actions/checkout@v4 - \ No newline at end of file + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore --configuration Release + + - name: Run tests + run: dotnet test --no-build --verbosity normal +