Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GITHUB_WORKSPACE for LogFilePath" #2087

Merged
merged 5 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test-linux-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ on:
jobs:
report:
runs-on: ubuntu-latest
name: Linux Test Summary
steps:
- uses: elastic/apm-pipeline-library/.github/actions/test-report@current
with:
artifact: test-results-linux # artifact name
name: Tests Summary # Name of the check run which will be created
name: Linux Tests Summary # Name of the check run which will be created
path: "junit-*.xml" # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
list-suites: 'failed'
list-tests: 'failed'
output-to: 'step-sumary'
24 changes: 24 additions & 0 deletions .github/workflows/test-windows-iis-reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
## Workflow to process the JUnit test results and add a report to the checks.
name: test-windows-iis-reporter
on:
workflow_run:
workflows:
- test-windows-iis
types:
- completed

jobs:
report:
runs-on: ubuntu-latest
name: IIS Test Summary
steps:
- uses: elastic/apm-pipeline-library/.github/actions/test-report@current
with:
artifact: test-results-iis # artifact name
name: IIS Tests Summary # Name of the check run which will be created
path: "junit-*.xml" # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
list-suites: 'failed'
list-tests: 'failed'
output-to: 'step-sumary'
4 changes: 3 additions & 1 deletion .github/workflows/test-windows-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ on:
jobs:
report:
runs-on: ubuntu-latest
name: Windows Test Summary
steps:
- uses: elastic/apm-pipeline-library/.github/actions/test-report@current
with:
artifact: test-results-windows # artifact name
name: Tests Summary # Name of the check run which will be created
name: Windows Tests Summary # Name of the check run which will be created
path: "junit-*.xml" # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
list-suites: 'failed'
list-tests: 'failed'
output-to: 'step-sumary'
2 changes: 1 addition & 1 deletion .github/workflows/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
--verbosity minimal \
${{ inputs.filter != '' && format('--filter "{0}"', inputs.filter) || '' }} \
${{ inputs.framework != '' && format('-f {0}', inputs.framework) || '' }} \
--logger:"junit;LogFilePath=$(readlink -f build/output)/junit-${{ runner.os == 'Linux' && 'linux' || 'windows' }}-{framework}-{assembly}.xml;MethodFormat=Class;FailureBodyFormat=Verbose" \
--logger:"junit;LogFilePath=${GITHUB_WORKSPACE}/build/output/junit-${{ runner.os == 'Linux' && 'linux' || 'windows' }}-{framework}-{assembly}.xml;MethodFormat=Class;FailureBodyFormat=Verbose" \

- name: Store test results
if: success() || failure()
Expand Down