-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from Ali-YousefiTelori/develop
fix format
- Loading branch information
Showing
1 changed file
with
1 addition
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 }} |