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 report details to comment and limit steps to certain events #5

Open
1 of 3 tasks
S-S-X opened this issue Mar 1, 2021 · 2 comments
Open
1 of 3 tasks

Test report details to comment and limit steps to certain events #5

S-S-X opened this issue Mar 1, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@S-S-X
Copy link
Member

S-S-X commented Mar 1, 2021

Demo: S-S-X/metatool#100 (comment)

Can be added to README.md but inclusion to action depends on #1 (actions in actions)

  • Full report without too obstructing comments on pull request.
  • Update badges only when pushing (merging pull request) to master.
  • Update report comments only when committing to pull request or opening pull request.
    - uses: RubbaBoy/[email protected]
      if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
      with:
        NAME: "${{ steps.mineunit-sharetool.outputs.badge-name }}"
        LABEL: "${{ steps.mineunit-sharetool.outputs.badge-label }}"
        STATUS: "${{ steps.mineunit-sharetool.outputs.badge-status }}"
        COLOR: "${{ steps.mineunit-sharetool.outputs.badge-color }}"
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

    - if: success() && github.event_name == 'pull_request'
      uses: KeisukeYamashita/create-comment@v1
      with:
        check-only-first-line: true
        comment: |
          <details><summary><i>Click for detailed source code test coverage report</i></summary>
          
          ### Test coverage report for Metatool API sources:
          ```
          File                             Hits Missed Coverage
          -----------------------------------------------------
          ${{ steps.mineunit-metatool.outputs.mineunit-report }}
          ```
          ### Test coverage report for Containertool sources:
          ```
          File                             Hits Missed Coverage
          -----------------------------------------------------
          ${{ steps.mineunit-containertool.outputs.mineunit-report }}
          ```
          ### Test coverage report for Sharetool sources:
          ```
          File                             Hits Missed Coverage
          -----------------------------------------------------
          ${{ steps.mineunit-sharetool.outputs.mineunit-report }}
          ```
          </details>
@S-S-X S-S-X added the enhancement New feature or request label Mar 1, 2021
@S-S-X
Copy link
Member Author

S-S-X commented Mar 3, 2021

Badge updating and Camo proxy purging done and tested in badger branch.

@S-S-X
Copy link
Member Author

S-S-X commented Mar 14, 2021

Added coverage/error reporting demo / test setup for technic @ mt-mods/technic#160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant