Skip to content

Commit f14ea18

Browse files
committed
Fix merge conflict
2 parents 5179565 + 2d09600 commit f14ea18

1,619 files changed

Lines changed: 409846 additions & 333677 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,8 @@ dotnet_naming_style.begin_s_.required_prefix = s_
287287
dotnet_naming_style.begin_s_.required_suffix =
288288
dotnet_naming_style.begin_s_.word_separator =
289289
dotnet_naming_style.begin_s_.capitalization = camel_case
290+
291+
292+
# Overrides
293+
[{**/{Content.Tests.csproj,Content.IntegrationTests.csproj},Directory.Build.targets}]
294+
indent_size = 2

.github/ci.runsettings

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<RunSettings>
3+
<NUnit>
4+
<MapWarningTo>Failed</MapWarningTo>
5+
<ConsoleOut>0</ConsoleOut>
6+
</NUnit>
7+
</RunSettings>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Publish Test Report
2+
3+
# Second half of build-test-debug
4+
# see https://github.com/ctrf-io/github-test-reporter/blob/main/docs/fork-pull-requests.md
5+
6+
on:
7+
workflow_run:
8+
workflows: [ 'Build & Test Debug' ]
9+
types: [ completed ]
10+
11+
permissions: {}
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_sha }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
report:
19+
name: Comment Test Results
20+
if: >-
21+
github.event.workflow_run.event == 'pull_request' &&
22+
github.event.workflow_run.conclusion != 'cancelled' &&
23+
github.event.workflow_run.conclusion != 'skipped'
24+
runs-on: ubuntu-slim
25+
permissions:
26+
actions: read
27+
contents: read
28+
pull-requests: write
29+
steps:
30+
- name: Download CTRF test results
31+
continue-on-error: true
32+
uses: actions/download-artifact@v8
33+
with:
34+
run-id: ${{ github.event.workflow_run.id }}
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
pattern: test-nunit-*
37+
path: /tmp/ctrf-results
38+
39+
- name: Determine PR number
40+
id: pr
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GH_REPO: ${{ github.repository }}
44+
HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
45+
run: |
46+
PR_NUM=$(gh api "repos/${GH_REPO}/commits/${HEAD_SHA}/pulls" \
47+
--jq "[.[] | select(.state == \"open\" and .head.sha == \"${HEAD_SHA}\") | .number] | first // empty" || true)
48+
49+
if [ -z "$PR_NUM" ]; then
50+
PR_NUM=$(gh pr list --state open --limit 100 --json number,headRefOid \
51+
--jq "[.[] | select(.headRefOid == \"${HEAD_SHA}\") | .number] | first // empty" || true)
52+
fi
53+
54+
if [ -z "$PR_NUM" ]; then
55+
echo "No open PR found for head SHA ${HEAD_SHA}; skipping comment"
56+
else
57+
echo "Commenting on PR #${PR_NUM}"
58+
fi
59+
60+
echo "number=${PR_NUM}" >> "$GITHUB_OUTPUT"
61+
62+
- name: Comment test results on PR
63+
if: ${{ steps.pr.outputs.number != '' }}
64+
uses: ctrf-io/github-test-reporter@v1
65+
with:
66+
report-path: '/tmp/ctrf-results/**/*.json'
67+
title: Content + Integration Test Results
68+
community-report: true
69+
community-report-name: cobra-report
70+
issue: ${{ steps.pr.outputs.number }}
71+
overwrite-comment: true
72+
comment-tag: debug-ci-test-report
73+
exit-on-no-files: false
74+
exit-on-fail: false
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)