Skip to content

Commit e6b807d

Browse files
authored
action: test-docs workflow should create basic junit report (#1767)
1 parent 713eaea commit e6b807d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test-docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,25 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- run: 'echo "No build required"'
21+
# As long as this workflow uses the same name than .github/workflows/test.yml and
22+
# the test-reporter requires artifacts with the test results to exist.
23+
# let's produce a dummy test so the test-report don't fail in this particular
24+
# case
25+
- name: Generate junit placeholder - to integrate with test-reporter
26+
run: |-
27+
cat > docs-python-agent-junit.xml << ENDOFFILE
28+
<?xml version="1.0" encoding="UTF-8"?>
29+
<testsuites name="apm-agent-python" tests="1" failures="0" errors="0" time="1">
30+
<testsuite name="apm-agent-python-docs" errors="0" failures="0" skipped="1" time="1" tests="1">
31+
<testcase classname="docs" name="Skipped test" time="0">
32+
<skipped/>
33+
</testcase>
34+
</testsuite>
35+
</testsuites>
36+
ENDOFFILE
37+
- if: success() || failure()
38+
name: Upload JUnit Test Results
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: test-results
42+
path: "docs-python-agent-junit.xml"

0 commit comments

Comments
 (0)