No default (#135) #104
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@v2 | |
- id: mineunit-metatool | |
uses: mt-mods/mineunit-actions@master | |
with: | |
working-directory: ./metatool | |
badge-name: metatool-coverage | |
badge-label: Metatool API Coverage | |
- uses: RubbaBoy/[email protected] | |
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
with: | |
NAME: "${{ steps.mineunit-metatool.outputs.badge-name }}" | |
LABEL: "${{ steps.mineunit-metatool.outputs.badge-label }}" | |
STATUS: "${{ steps.mineunit-metatool.outputs.badge-status }}" | |
COLOR: "${{ steps.mineunit-metatool.outputs.badge-color }}" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- id: mineunit-containertool | |
uses: mt-mods/mineunit-actions@master | |
with: | |
working-directory: ./containertool | |
badge-name: containertool-coverage | |
badge-label: Containertool Coverage | |
- uses: RubbaBoy/[email protected] | |
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
with: | |
NAME: "${{ steps.mineunit-containertool.outputs.badge-name }}" | |
LABEL: "${{ steps.mineunit-containertool.outputs.badge-label }}" | |
STATUS: "${{ steps.mineunit-containertool.outputs.badge-status }}" | |
COLOR: "${{ steps.mineunit-containertool.outputs.badge-color }}" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- id: mineunit-tubetool | |
uses: mt-mods/mineunit-actions@master | |
with: | |
working-directory: ./tubetool | |
badge-name: tubetool-coverage | |
badge-label: Tubetool Coverage | |
- uses: RubbaBoy/[email protected] | |
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
with: | |
NAME: "${{ steps.mineunit-tubetool.outputs.badge-name }}" | |
LABEL: "${{ steps.mineunit-tubetool.outputs.badge-label }}" | |
STATUS: "${{ steps.mineunit-tubetool.outputs.badge-status }}" | |
COLOR: "${{ steps.mineunit-tubetool.outputs.badge-color }}" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- id: mineunit-sharetool | |
uses: mt-mods/mineunit-actions@master | |
with: | |
working-directory: ./sharetool | |
badge-name: sharetool-coverage | |
badge-label: Sharetool Coverage | |
- 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 Tubetool sources: | |
``` | |
File Hits Missed Coverage | |
----------------------------------------------------- | |
${{ steps.mineunit-tubetool.outputs.mineunit-report }} | |
``` | |
### Test coverage report for Sharetool sources: | |
``` | |
File Hits Missed Coverage | |
----------------------------------------------------- | |
${{ steps.mineunit-sharetool.outputs.mineunit-report }} | |
``` | |
</details> |