mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 22:37:09 +01:00
Add action typing
This commit is contained in:
parent
0b4ea9b681
commit
e55cef4845
3 changed files with 114 additions and 0 deletions
19
.github/workflows/check-action-typing.yml
vendored
Normal file
19
.github/workflows/check-action-typing.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
name: Check Action Typing
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check_action_typing:
|
||||
name: Check Action Typing
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check Action Typing
|
||||
uses: typesafegithub/github-actions-typing@v2
|
||||
|
|
@ -8,6 +8,9 @@ This [Github Action](https://github.com/features/actions) displays test results
|
|||
|
||||
✔️ Provides final `conclusion` and counts of `passed`, `failed` and `skipped` tests as output parameters
|
||||
|
||||
Thanks to the provided [typings](action-types.yml), it is possible to use this action in a type-safe way using
|
||||
https://github.com/typesafegithub/github-workflows-kt which allows writing workflow files using a type-safe Kotlin DSL.
|
||||
|
||||
**How it looks:**
|
||||
|||||
|
||||
|:--:|:--:|:--:|:--:|
|
||||
|
|
|
|||
92
action-types.yml
Normal file
92
action-types.yml
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
# See https://github.com/typesafegithub/github-actions-typing/
|
||||
inputs:
|
||||
artifact:
|
||||
type: string
|
||||
|
||||
name:
|
||||
type: string
|
||||
|
||||
path:
|
||||
type: list
|
||||
separator: ','
|
||||
list-item:
|
||||
type: string
|
||||
|
||||
path-replace-backslashes:
|
||||
type: boolean
|
||||
|
||||
reporter:
|
||||
type: enum
|
||||
allowed-values:
|
||||
- dart-json
|
||||
- dotnet-nunit
|
||||
- dotnet-trx
|
||||
- flutter-json
|
||||
- java-junit
|
||||
- jest-junit
|
||||
- mocha-json
|
||||
- rspec-json
|
||||
- swift-xunit
|
||||
|
||||
list-suites:
|
||||
type: enum
|
||||
allowed-values:
|
||||
- all
|
||||
- failed
|
||||
- none
|
||||
|
||||
list-tests:
|
||||
type: enum
|
||||
allowed-values:
|
||||
- all
|
||||
- failed
|
||||
- none
|
||||
|
||||
max-annotations:
|
||||
type: integer
|
||||
|
||||
fail-on-error:
|
||||
type: boolean
|
||||
|
||||
fail-on-empty:
|
||||
type: boolean
|
||||
|
||||
working-directory:
|
||||
type: string
|
||||
|
||||
only-summary:
|
||||
type: boolean
|
||||
|
||||
use-actions-summary:
|
||||
type: boolean
|
||||
|
||||
badge-title:
|
||||
type: string
|
||||
|
||||
token:
|
||||
type: string
|
||||
|
||||
outputs:
|
||||
conclusion:
|
||||
type: enum
|
||||
allowed-values:
|
||||
- success
|
||||
- failure
|
||||
|
||||
passed:
|
||||
type: integer
|
||||
|
||||
failed:
|
||||
type: integer
|
||||
|
||||
skipped:
|
||||
type: integer
|
||||
|
||||
time:
|
||||
type: integer
|
||||
|
||||
url:
|
||||
type: string
|
||||
|
||||
url_html:
|
||||
type: string
|
||||
Loading…
Add table
Add a link
Reference in a new issue