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

Can you add an example for Java - Junit - with Maven as well? #3

Open
PramodKumarYadav opened this issue May 21, 2022 · 0 comments
Open

Comments

@PramodKumarYadav
Copy link

The example contains Java - Junit with Ant. Since many use maven as a build system as well, could you add an example on how to make it work with maven structure?

Note: I tried using this with maven but it did not work. I tried to get the path using "realpath "TEST-.xml" in a step and got this.
'/home/runner/work/zero/zero/TEST-
.xml'

But when I tried to use this path, here, it did not work.

- name: Test Summary
      uses: test-summary/action@v1
      with:
        paths: "/home/runner/work/zero/zero/TEST-*.xml"
      if: always()

Also tried to get the absolute path of test summary and found this path: /home/runner/work/zero/zero/test-summary.md but it does not work.

- name: Upload test summary
      uses: actions/upload-artifact@v3
      with:
        name: test-summary
        path: "/home/runner/work/zero/zero/test-summary.md"
      if: always()

image

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