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

Update test-reporter workflow #792

Merged
merged 1 commit into from
Sep 12, 2024
Merged
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
18 changes: 8 additions & 10 deletions .github/workflows/test-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ on:
permissions:
contents: read
actions: read
checks: write

jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: elastic/apm-pipeline-library/.github/actions/test-report@current
- uses: elastic/oblt-actions/test-report@v1
with:
artifact: test-results # artifact name
artifact: /test-results(.*)/ # artifact name pattern
name: JUnit Tests # Name of the check run which will be created
path: "**/elastic-serverless-forwarder-junit.xml" # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results
Expand All @@ -28,14 +29,11 @@ jobs:
if: ${{ github.event.workflow_run.event == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Download artifacts
run: >
gh run download ${{ github.event.workflow_run.id }}
--name test-results
--repo "${GITHUB_REPOSITORY}"
--dir .
env:
GH_TOKEN: ${{ github.token }}
- uses: actions/download-artifact@v4
with:
pattern: test-results*
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
- uses: 5monkeys/cobertura-action@ee5787cc56634acddedc51f21c7947985531e6eb
with:
path: "**/coverage.xml"
Expand Down