v0.14 #264
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mineunit | |
on: [push, pull_request] | |
jobs: | |
mineunit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: mineunit | |
- id: mineunit | |
uses: mt-mods/mineunit-actions@master | |
with: | |
working-directory: mineunit | |
- uses: RubbaBoy/[email protected] | |
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
with: | |
NAME: "${{ steps.mineunit.outputs.badge-name }}" | |
LABEL: "${{ steps.mineunit.outputs.badge-label }}" | |
STATUS: "${{ steps.mineunit.outputs.badge-status }}" | |
COLOR: "${{ steps.mineunit.outputs.badge-color }}" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: KeisukeYamashita/create-comment@v1 | |
if: failure() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
with: | |
check-only-first-line: true | |
comment: | | |
## Some tests failed, test log follows: | |
``` | |
${{ steps.mineunit.outputs.mineunit-stdout }} | |
``` | |
- uses: KeisukeYamashita/create-comment@v1 | |
if: success() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
with: | |
check-only-first-line: true | |
comment: | | |
<details><summary><i>Click for detailed source code test coverage report</i></summary> | |
#### Test coverage ${{ steps.mineunit.outputs.coverage-total }} in ${{ steps.mineunit.outputs.coverage-files }} files: | |
```q | |
File Hits Missed Coverage | |
-------------------------------------------------------------- | |
${{ steps.mineunit.outputs.mineunit-report }} | |
``` | |
#### Mineunit stdout: | |
``` | |
${{ steps.mineunit.outputs.mineunit-stdout }} | |
``` | |
</details> |