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

Only create annotations for forked pr #235

Open
gilesw opened this issue Nov 5, 2024 · 0 comments
Open

Only create annotations for forked pr #235

gilesw opened this issue Nov 5, 2024 · 0 comments

Comments

@gilesw
Copy link

gilesw commented Nov 5, 2024

Checks can't be created on a forked repo pr but annotations can... so I was hopeful to use this action to handle that edge case. However it failed when create_check: false was set.

Run scacap/[email protected]
  with:
    report_paths: hello_world/target/surefire-reports/*.xml
    create_check: false
    fail_on_test_failures: false
    file_name_in_stack_trace: true
    skip_publishing: false
    github_token: ***
    check_name: Test Report
    fail_if_no_tests: true
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.[2](https://github.com/ORCID/orcid-hello_world_pipeline_test/actions/runs/11687962641/job/32547280116?pr=1#step:7:2)5-9/x64
    JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.25-9/x64
Going to parse results form hello_world/target/surefire-reports/*.xml
org.opentest4j.AssertionFailedError:1 | This is a failing test to test the pipeline. ==> expected: <true> but was: <false>
Result: 2 tests run, 0 skipped, 1 failed.
Error: Did not find any in progress 'Test Report' check for sha 82abc2859fa96fa866685[3](https://github.com/ORCID/orcid-hello_world_pipeline_test/actions/runs/11687962641/job/32547280116?pr=1#step:7:3)62ddaeabeb31b84670
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant