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

Test results are not displayed, if the action is run by schedule #203

Closed
ant-siliconmint opened this issue Dec 17, 2021 · 4 comments
Closed
Labels
question Further information is requested

Comments

@ant-siliconmint
Copy link

ant-siliconmint commented Dec 17, 2021

image

Config:

- name: Publish Unit Test Results
        uses: EnricoMi/[email protected]
        if: success() || failure()
        with:
          files: artifacts/**/*.xml
          check_name: Test_Results

Output:

2021-12-17 12:01:47 +0000 - publish-unit-test-results -  INFO - reading artifacts/**/*.xml
2021-12-17 12:01:47 +0000 - publish -  INFO - publishing failure results for commit 586a74bd947f5ac807e48e9544d1d24c4be7f2db
2021-12-17 12:01:47 +0000 - publish -  INFO - creating check
2021-12-17 12:01:49 +0000 - publish -  INFO - there is no pull request for commit 586a74bd947f5ac807e48e9544d1d24c4be7f2db

On push, the test results are displayed as expected:

image

@EnricoMi
Copy link
Owner

The scheduled action will overwrite the push action's result and vice versa. The result of the scheduled action should be found in the same place as the push one.

The best way to find the result:

  • click on the scheduled "Publish Test Results" action
  • remove ?check_suite_focus=true from the URL
  • look in all workflow runs that are shown on the left, not necessarily the scheduled one

@EnricoMi EnricoMi added the question Further information is requested label Dec 17, 2021
@ant-siliconmint
Copy link
Author

ant-siliconmint commented Dec 17, 2021

I did find the results according to your instructions - thanks. And I guess, there's currently no way to override this behavior and show the test results in a specific run?

@EnricoMi
Copy link
Owner

Yes, that location is picked by GitHub, their API does not allow to specify a workflow run (#12).

@ant-siliconmint
Copy link
Author

Thank you, Enrico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants