diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.yml index d70cacf..eb75d8a 100644 --- a/.github/workflows/build-project.yml +++ b/.github/workflows/build-project.yml @@ -1,7 +1,7 @@ name: 'build-project' on: - push: #Push always triggers after a merge + push: # Push always triggers after a merge branches: - master - develop @@ -9,27 +9,28 @@ on: # Defines environment variables env: - NETCORE_VERSION: '3.1.200' + NETCORE_VERSION: '8.0.x' jobs: build: name: 'run-project-build' runs-on: windows-latest steps: - - uses: actions/checkout@v2 + # Checkout the repository + - uses: actions/checkout@v3 - #Setup the environment - - name: 'setup .NET Core SDK ${{ env.NETCORE_VERSION }}' - uses: actions/setup-dotnet@v1 + # Setup the .NET 8.0 SDK environment + - name: 'setup .NET SDK ${{ env.NETCORE_VERSION }}' + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ env.NETCORE_VERSION }} - # Restore all nuget packages to prevent issues during build + # Restore NuGet packages to ensure dependencies are available for the build - name: 'restore nuget packages' working-directory: './src' run: dotnet restore - # Build the project + # Build the project in Release configuration - name: 'build project' working-directory: './src' run: dotnet build --configuration Release --no-restore \ No newline at end of file diff --git a/.github/workflows/test-project.yml b/.github/workflows/test-project.yml index 0083dc2..a511b8c 100644 --- a/.github/workflows/test-project.yml +++ b/.github/workflows/test-project.yml @@ -1,7 +1,7 @@ name: 'test-project' on: - push: #Push always triggers after a merge + push: # Push always triggers after a merge branches: - master - develop @@ -9,22 +9,23 @@ on: # Defines environment variables env: - NETCORE_VERSION: '3.1.200' + NETCORE_VERSION: '8.0.x' jobs: build: name: 'run-unit-tests' runs-on: windows-latest steps: - - uses: actions/checkout@v2 + # Checkout the repository + - uses: actions/checkout@v3 - #Setup the environment - - name: 'setup .NET Core SDK ${{ env.NETCORE_VERSION }}' - uses: actions/setup-dotnet@v1 + # Setup the .NET 8.0 SDK environment + - name: 'setup .NET SDK ${{ env.NETCORE_VERSION }}' + uses: actions/setup-dotnet@v3 with: dotnet-version: ${{ env.NETCORE_VERSION }} - # Restore all nuget packages to prevent issues during build + # Restore all NuGet packages to ensure dependencies are available - name: 'restore nuget packages' working-directory: './src' run: dotnet restore