Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with dotnet-format #5

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Publish
on:
workflow_dispatch:
push:
branches: [ master, main ]

branches: [ master, main ]

jobs:
build:
Expand All @@ -24,7 +23,7 @@ jobs:
run: dotnet build ./WebApiCICDWorkFlow.sln --configuration Release --no-restore

- name: Test with dotnet
run: dotnet test ./WebApiCICDWorkFlow.sln --no-build --verbosity normal
run: dotnet test ./WebApiCICDWorkFlow.Tests/WebApiCICDWorkFlow.Tests.csproj /p:VsTestUseMSBuildOutput=true --no-build --verbosity normal

- name: Publish with dotnet
run: dotnet publish ./WebApiCICDWorkFlow.sln --configuration Release --no-build --output ./publish_output
Expand Down
4 changes: 2 additions & 2 deletions WebApiCICDWorkFlow/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static void Main(string[] args)


//create enum type for calculator operations, opertion is body parameter for the post request

app.MapGet("/calculator/{operation}/{a}/{b}", ([FromQuery]Operation operation, float a, float b) =>
{
float result = operation switch
Expand All @@ -51,7 +51,7 @@ public static void Main(string[] args)
};
return result;
}).WithName("WebApiCICDWorkFlow")
.WithOpenApi();
.WithOpenApi();



Expand Down