Skip to content

When run on workflow_dispatch, no Test Report appears #199

@lobodpav

Description

@lobodpav

I have a workflow defined that allows running on push action and allows manual execution too.

When run on push, everything works fine. When run manually (i.e. on workflow_dispatch), no Test Report job appears and annotations are missing too.

What am I doing wrong?

name: My workflow

on:
  push:
    branches:
      - dev
  workflow_dispatch:


jobs:
  build:
    name: Build and verify
    runs-on: ubuntu-latest
    steps:
      - name: Checkout source
        uses: actions/checkout@v2

      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11

      - name: Build with Maven
        run: ./mvnw -B verify -T 1C

      - name: Publish test reports
        if: ${{ always() }}
        uses: scacap/[email protected]
        with:
          report_paths: '**/surefire-reports/*.xml'
          github_token: ${{ secrets.GITHUB_TOKEN }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions