Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fredimachado committed May 28, 2024
1 parent efd6396 commit f2d2917
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/barista-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ jobs:

- name: Test
id: test
# Note that the space after the last double dash (--) is intentional
run: >
dotnet test ../**.Tests/**.csproj
--logger console --logger trx --logger html
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--results-directory ${{github.workspace}}/TestResults --blame
--
RunConfiguration.CollectSourceInformation=true
run: |
echo "## Test results" >> $GITHUB_STEP_SUMMARY
dotnet test ../**.Tests/**.csproj \
--results-directory ${{github.workspace}}/TestResults --blame \
--logger console --logger trx --logger html \
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" \
-- RunConfiguration.CollectSourceInformation=true
- name: Upload Test Results
if: (success() || steps.test.conclusion == 'failure')
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cashier-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ jobs:
- name: Build
run: dotnet build -c Release --no-restore /p:CopyLocalLockFileAssemblies=true

- name: Test
run: dotnet test ../../../NCafe.sln --results-directory ./testresults --logger "trx;LogFileName=test_results.xml" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./testresults/coverage/
- name: Test
id: test
# Note that the space after the last double dash (--) is intentional
run: >
dotnet test ../../../NCafe.sln
--logger console --logger trx --logger html
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--results-directory ${{github.workspace}}/TestResults --blame
'/p:CollectCoverage=true;CoverletOutputFormat="json,lcov,cobertura";MergeWith=${{github.workspace}}/TestResults/coverage.json;CoverletOutput=${{github.workspace}}/TestResults/coverage' \
--
RunConfiguration.CollectSourceInformation=true
'/p:CollectCoverage=true;CoverletOutputFormat="json,lcov,cobertura";MergeWith=${{github.workspace}}/TestResults/coverage.json;CoverletOutput=${{github.workspace}}/TestResults/coverage'
-- RunConfiguration.CollectSourceInformation=true
- name: Upload Test Results
if: (success() || steps.test.conclusion == 'failure')
Expand Down

0 comments on commit f2d2917

Please sign in to comment.