Skip to content

Commit

Permalink
Update test command in publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andronovo-bit committed Mar 21, 2024
1 parent 1ac835f commit 365d3c0
Showing 1 changed file with 2 additions and 3 deletions.
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 --configuration Release --verbosity normal

- name: Publish with dotnet
run: dotnet publish ./WebApiCICDWorkFlow.sln --configuration Release --no-build --output ./publish_output
Expand Down

0 comments on commit 365d3c0

Please sign in to comment.