Skip to content

Commit

Permalink
fix format action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Jan 12, 2024
1 parent 45c1c00 commit ab3abd0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ jobs:
6.0.x
7.0.x
8.0.x
- name: Clone and run Authentication
run: |
git clone https://github.com/EasyMicroservices/Authentications-Microservice.git
cd Authentications-Microservice
dotnet run --project src/CSharp/EasyMicroservices.AuthenticationsMicroservice.WebApi/EasyMicroservices.AuthenticationsMicroservice.WebApi.csproj &
AUTH_PID=$!
echo "Started Authentication Service with PID $AUTH_PID"
cd ..
shell: bash
- name: Clone and run WhiteLabel
run: |
git clone https://github.com/EasyMicroservices/WhiteLabels-Microservice.git
cd WhiteLabels-Microservice
dotnet run --project src/CSharp/EasyMicroservices.WhiteLabelsMicroservice.WebApi/EasyMicroservices.WhiteLabelsMicroservice.WebApi.csproj &
WHITELABEL_PID=$!
echo "Started WhiteLabel Service with PID $WHITELABEL_PID"
cd ..
shell: bash
- name: Run dotnet format
id: format
uses: jfversluis/[email protected]
Expand All @@ -36,3 +54,10 @@ jobs:
ref: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Cleanup
if: always()
run: echo "Shutting down Authentication Service with PID $AUTH_PID"
kill $AUTH_PID echo "Authentication Service shutdown failed"
echo "Shutting down WhiteLabel Service with PID $WHITELABEL_PID"
kill $WHITELABEL_PID echo "WhiteLabel Service shutdown failed"

0 comments on commit ab3abd0

Please sign in to comment.