Skip to content

Commit

Permalink
add cleanup to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Jan 12, 2024
1 parent 06ef5a4 commit 8f5c219
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-linux-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ jobs:
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln --no-build --verbosity normal -f net7.0
- 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"
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ jobs:
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln --no-build --verbosity normal -f net7.0
- 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"
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-macos-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ jobs:
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln --no-build --verbosity normal -f net7.0
- 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"
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ jobs:
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln --no-build --verbosity normal -f net7.0
- 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"
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-windows-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ jobs:
run: dotnet build ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln --no-build --verbosity normal

- 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"
8 changes: 7 additions & 1 deletion .github/workflows/nuget-push-public-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ jobs:
- name: Create the package
run: dotnet pack ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln --output nupkgs
- name: Publish the package to NuGet.org
run: dotnet nuget push nupkgs\*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
run: dotnet nuget push nupkgs\*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- 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"
8 changes: 7 additions & 1 deletion .github/workflows/nuget-push-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ jobs:
- name: Create the package
run: dotnet pack ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln --output nupkgs
- name: Publish the package to NuGet.org
run: dotnet nuget push nupkgs\*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
run: dotnet nuget push nupkgs\*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- 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 8f5c219

Please sign in to comment.