Skip to content

Commit

Permalink
Update main_prod-ap-ms-order-customer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HammerheadShark666 authored Aug 26, 2024
1 parent b1955a9 commit 4b84740
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/main_prod-ap-ms-order-customer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,26 @@ jobs:
tags: prodcrmsordersystem.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_7f841e2c5fcd40e4b7eb95c24c4711cc }}/microservicecustomer:${{ github.sha }}
file: ./Microservice.Customer.Api/Dockerfile

deploy:
unit-tests:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

- name: Build with dotnet
run: dotnet build Microservice.Customer.Api/Microservice.Customer.Api.csproj --configuration Release

- name: Unit Tests
run: dotnet test Microservice.Customer.Api.Test.Unit/Microservice.Customer.Api.Test.Unit.csproj --logger "console;verbosity=detailed"

deploy:
runs-on: ubuntu-latest
needs: unit-tests
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
Expand All @@ -49,27 +66,10 @@ jobs:
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_cd2f51ba1d6e48b98c0346ba7df5d0f4 }}
images: 'prodcrmsordersystem.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_7f841e2c5fcd40e4b7eb95c24c4711cc }}/microservicecustomer:${{ github.sha }}'

unit-tests:
runs-on: ubuntu-latest
needs: deploy
steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

- name: Build with dotnet
run: dotnet build Microservice.Customer.Api/Microservice.Customer.Api.csproj --configuration Release

- name: Unit Tests
run: dotnet test Microservice.Customer.Api.Test.Unit/Microservice.Customer.Api.Test.Unit.csproj --logger "console;verbosity=detailed"

automated-api-tests:
runs-on: ubuntu-latest
needs: unit-tests
needs: deploy
steps:
- uses: actions/checkout@v4
- name: Install Postman CLI
Expand Down

0 comments on commit 4b84740

Please sign in to comment.