From d3d193331baba6fa3172bb118b314da367e53cf5 Mon Sep 17 00:00:00 2001 From: Webster Date: Wed, 6 Dec 2023 21:44:50 +0000 Subject: [PATCH] #19 yaml testing --- .github/workflows/build.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4054ab7..a7791a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,6 @@ -name: Build Action +name: Build actions -on: - push: - paths: - - 'DataAccess/DataAccess.Repository/**' - - 'DataAccess/Extensions/DataAccess.Repository.HotChocolate/**' +on: push jobs: @@ -12,19 +8,17 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - project: ['DataAccess.Repository', 'DataAccess.Repository.HotChocolate'] - steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 # Install the .NET Core workload - name: Install .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 7.0.x # Set up local NuGet repo - name: Setup GitHub NuGet @@ -32,8 +26,13 @@ jobs: # Resource NuGet dependencies - name: Restore dependencies - run: dotnet restore 'DataAccess/${{ matrix.project }}' + run: dotnet restore # Build project - name: Build - run: dotnet build --configuration Release 'DataAccess/${{ matrix.project }}' \ No newline at end of file + run: dotnet build --configuration Release + + # Execute all unit tests in the solution + - name: Execute unit tests + run: dotnet test +