SimpleMessagingService

Log | Files | Refs | README

commit a7906a2c099291145711231303ba66bf32fc410f
parent e1c0268872d9f13060b742462a5704cb97efd956
Author: William Lindholm <85635561+LindholmLabs@users.noreply.github.com>
Date:   Sun, 14 Jul 2024 02:37:00 +0200

Create dotnet pipeline
Diffstat:
A.github/workflows/dotnet.yml | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml @@ -0,0 +1,39 @@ +name: dotnet pipeline + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + # Restore, build, and test for Api project + - name: Restore dependencies for Api + run: dotnet restore Api/Api.csproj + + - name: Build Api project + run: dotnet build Api/Api.csproj --no-restore + + - name: Test Api project + run: dotnet test Api/Api.csproj --no-build --verbosity normal + + # Restore, build, and test for Client project + - name: Restore dependencies for Client + run: dotnet restore Client/Client.csproj + + - name: Build Client project + run: dotnet build Client/Client.csproj --no-restore + + - name: Test Client project + run: dotnet test Client/Client.csproj --no-build --verbosity normal