Skip to content

Commit

Permalink
Tag test result files && fix ctrf calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubfijalkowski committed Dec 20, 2024
1 parent d9c57d2 commit 65a7803
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/core_build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ jobs:
# Strip BOM first :clown:
find TestResults -name '*.json' | xargs -n 1 sed -i "$(printf '1s/^\357\273\277//')"
npx ctrf merge TestResults --output merged.json
npx github-actions-ctrf summary failed-folded skipped suite-folded annotate pull-request TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
npx github-actions-ctrf summary TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
npx github-actions-ctrf failed-folded TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
npx github-actions-ctrf skipped TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
npx github-actions-ctrf suite-folded TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
npx github-actions-ctrf annotate TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
npx github-actions-ctrf pull-request TestResults/merged.json --update-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 2 additions & 2 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
--results-directory $(MSBuildThisFileDirectory)/../TestResults
--coverage-output-format xml
--coverage-settings $(MSBuildThisFileDirectory)/coverage.xml
--report-ctrf-filename $(MSBuildProjectName).json
--coverage-output $(MSBuildProjectName).xml
--report-ctrf-filename $(MSBuildProjectName)-$([System.Guid]::NewGuid()).json
--coverage-output $(MSBuildProjectName)-$([System.Guid]::NewGuid()).xml
</TestingPlatformCommandLineArguments>
</PropertyGroup>

Expand Down

0 comments on commit 65a7803

Please sign in to comment.