Skip to content

Commit

Permalink
try to get common test failures into the github actions checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Sep 28, 2022
1 parent d11a693 commit 8155c59
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Erlang

on:
Expand Down Expand Up @@ -44,18 +45,20 @@ jobs:
- name: Common Test tests
run: rebar3 ct --cover

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
report_paths: '**/_build/test/logs/*/junit_report.xml'
name: junit-test-results
path: '**/_build/test/logs/*/junit_report.xml'
retention-days: 1

- name: XRef
run: rebar3 xref
- name: Covertool
if: ${{ always() }}
run: rebar3 covertool generate
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
if: ${{ always() }}
with:
file: _build/test/covertool/opentelemetry.covertool.xml
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: report
on:
workflow_run:
workflows: [Erlang]
types: [completed]

permissions:
checks: write

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Download Test Report
uses: dawidd6/action-download-artifact@v2
with:
name: junit-test-results
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
with:
commit: ${{github.event.workflow_run.head_sha}}
report_paths: '**/_build/test/logs/*/junit_report.xml'

0 comments on commit 8155c59

Please sign in to comment.