Skip to content

Commit

Permalink
Merge branch 'laughedelic-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Apr 30, 2021
2 parents 6816d8e + 11046b0 commit 7ed4eed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ jobs:
uses: ./
if: endsWith(github.ref, 'main') == false
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_name: Example JUnit Test Report
report_paths: '**/surefire-reports/TEST-*.xml'
summary: '<table><thead><tr><th> Application (src/applications) </th></tr></thead><tbody><tr><td> test </td></tr></tbody></table>'
- name: Test PyTest test import
uses: ./
if: endsWith(github.ref, 'main') == false
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_name: Example Pytest Report
report_paths: test_results/python/report.xml
- name: Install NPM
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,14 @@ jobs:
uses: mikepenz/action-junit-report@v2
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
```
### Inputs
| **Input** | **Description** |
|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `github_token` | **Required**. Usually in form of `github_token: ${{ secrets.GITHUB_TOKEN }}`. |
| `report_paths` | **Required**. [Glob](https://github.com/actions/toolkit/tree/master/packages/glob) expression to junit report paths. The default is `**/junit-reports/TEST-*.xml`. |
| `token` | Optional. GitHub token for creating a check run. Set to `${{ github.token }}` by default. |
| `check_name` | Optional. Check name to use when creating a check run. The default is `Test Report`. |
| `suite_regex` | Optional. Regular expression for the named test suites. E.g. `Test*` |
| `commit` | Optional. The commit SHA to update the status. This is useful when you run it with `workflow_run`. |
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ branding:
inputs:
token:
description: 'Specify the token to use to publish the check.'
required: true
required: false
default: ${{ github.token }}
github_token:
description: 'Deprecated syntax to specify github token.'
required: true
Expand Down

0 comments on commit 7ed4eed

Please sign in to comment.