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 +