Skip to content

Commit

Permalink
Merge pull request #19 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
fix format
  • Loading branch information
Ali-YousefiTelori authored Jan 12, 2024
2 parents 2db7fd4 + aaafeae commit 41750a0
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,13 @@ 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]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "./src/CSharp/EasyMicroservices.IdentityMicroservice.sln"
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln -f net7.0
- name: Commit files
if: steps.format.outputs.has-changes == 'true'
uses: EndBug/[email protected]
Expand All @@ -53,11 +32,4 @@ jobs:
message: "chore: Automated dotnet-format update"
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"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 41750a0

Please sign in to comment.