From 7162a514bb101e4316d407107db7ac34d80123b7 Mon Sep 17 00:00:00 2001 From: Jezz Santos Date: Tue, 26 Dec 2023 19:40:23 +1300 Subject: [PATCH] Updated build script --- .github/workflows/build.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59527e34..40f91eb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ env: DEPLOY_BUILD_CONFIGURATION: 'ReleaseForDeploy' jobs: - build-test: + build: runs-on: windows-latest timeout-minutes: 15 steps: @@ -25,11 +25,26 @@ jobs: dotnet-version: 7.0.x - name: Restore dependencies run: dotnet restore "${{env.SOLUTION_PATH}}" + - name: Build for Azure Testing + run: dotnet build --configuration ${{env.TESTINGONLY_BUILD_CONFIGURATION}} "${{env.SOLUTION_PATH}}" /p:HostingPlatform=HOSTEDONAZURE + - name: Build for AWS Testing + run: dotnet build --configuration ${{env.TESTINGONLY_BUILD_CONFIGURATION}} "${{env.SOLUTION_PATH}}" /p:HostingPlatform=HOSTEDONAWS - name: Build for Azure Deploy run: dotnet build --configuration ${{env.DEPLOY_BUILD_CONFIGURATION}} "${{env.SOLUTION_PATH}}" /p:HostingPlatform=HOSTEDONAZURE - name: Build for AWS Deploy run: dotnet build --configuration ${{env.DEPLOY_BUILD_CONFIGURATION}} "${{env.SOLUTION_PATH}}" /p:HostingPlatform=HOSTEDONAWS - - name: Build for CI Testing + test: + runs-on: windows-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + run: dotnet restore "${{env.SOLUTION_PATH}}" + - name: Build for CI Testing (for Azure) run: dotnet build --configuration ${{env.TESTINGONLY_BUILD_CONFIGURATION}} "${{env.SOLUTION_PATH}}" /p:HostingPlatform=HOSTEDONAZURE - name: Unit Test continue-on-error: false