name: TestReport

on:
  workflow_run:
    workflows: ['Build']                   # runs after Build workflow
    types:
      - completed

jobs:
  report:
    runs-on: ubuntu-latest
    steps:
    - uses: dorny/test-reporter@v1
      with:
        artifact: /test-results(.*)/
        name: Tests                 
        path: 'tests/**/result-junit-**.xml' 
        reporter: java-junit