Skip to content

Commit

Permalink
Update test-reporter workflow (elastic#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Sep 12, 2024
1 parent ead33d4 commit 8be4fc4
Showing 1 changed file with 8 additions and 10 deletions.
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

0 comments on commit 8be4fc4

Please sign in to comment.