From dd1ab6f56b10a501e078ef018f1f25d52e47b696 Mon Sep 17 00:00:00 2001 From: Garion Cox Date: Wed, 20 Mar 2024 15:30:33 -0600 Subject: [PATCH] Test run. Commented out azure runner for now --- .../workflows/KakeysBakery20240319120850.yml | 96 +++++++++---------- .github/workflows/TestRunner.yml | 2 +- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/KakeysBakery20240319120850.yml b/.github/workflows/KakeysBakery20240319120850.yml index 18a76c5..51af269 100644 --- a/.github/workflows/KakeysBakery20240319120850.yml +++ b/.github/workflows/KakeysBakery20240319120850.yml @@ -1,48 +1,48 @@ -name: Build and deploy .NET Core application to Web App KakeysBakery20240319120850 -on: - push: - branches: - - main -env: - AZURE_WEBAPP_NAME: KakeysBakery20240319120850 - AZURE_WEBAPP_PACKAGE_PATH: KakeysBakery/published - CONFIGURATION: Release - DOTNET_CORE_VERSION: 8.0.x - WORKING_DIRECTORY: KakeysBakery -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup .NET SDK - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{ env.DOTNET_CORE_VERSION }} - - name: Restore - run: dotnet restore "${{ env.WORKING_DIRECTORY }}" - - name: Build - run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore - - name: Test - run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build - - name: Publish - run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}" - - name: Publish Artifacts - uses: actions/upload-artifact@v3 - with: - name: webapp - path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} - deploy: - runs-on: ubuntu-latest - needs: build - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v3 - with: - name: webapp - path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} - - name: Deploy to Azure WebApp - uses: azure/webapps-deploy@v2 - with: - app-name: ${{ env.AZURE_WEBAPP_NAME }} - publish-profile: ${{ secrets.KakeysBakery20240319120850_0A13 }} - package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} +# name: Build and deploy .NET Core application to Web App KakeysBakery20240319120850 +# on: +# push: +# branches: +# - main +# env: +# AZURE_WEBAPP_NAME: KakeysBakery20240319120850 +# AZURE_WEBAPP_PACKAGE_PATH: KakeysBakery/published +# CONFIGURATION: Release +# DOTNET_CORE_VERSION: 8.0.x +# WORKING_DIRECTORY: KakeysBakery +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - name: Setup .NET SDK +# uses: actions/setup-dotnet@v3 +# with: +# dotnet-version: ${{ env.DOTNET_CORE_VERSION }} +# - name: Restore +# run: dotnet restore "${{ env.WORKING_DIRECTORY }}" +# - name: Build +# run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore +# - name: Test +# run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build +# - name: Publish +# run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}" +# - name: Publish Artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: webapp +# path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} +# deploy: +# runs-on: ubuntu-latest +# needs: build +# steps: +# - name: Download artifact from build job +# uses: actions/download-artifact@v3 +# with: +# name: webapp +# path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} +# - name: Deploy to Azure WebApp +# uses: azure/webapps-deploy@v2 +# with: +# app-name: ${{ env.AZURE_WEBAPP_NAME }} +# publish-profile: ${{ secrets.KakeysBakery20240319120850_0A13 }} +# package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} diff --git a/.github/workflows/TestRunner.yml b/.github/workflows/TestRunner.yml index 5522988..360867b 100644 --- a/.github/workflows/TestRunner.yml +++ b/.github/workflows/TestRunner.yml @@ -17,5 +17,5 @@ jobs: - name: Test with the dotnet CLI run: | pwd - cd .. + # cd .. dotnet test \ No newline at end of file