mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
update logging and test report
This commit is contained in:
parent
2a53a9deba
commit
cd976285dc
3 changed files with 11 additions and 8 deletions
13
.github/workflows/playwright-report-test.yml
vendored
13
.github/workflows/playwright-report-test.yml
vendored
|
|
@ -11,12 +11,15 @@ jobs:
|
|||
name: Workflow test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Check dirs
|
||||
run: ls
|
||||
- name: Test reporter
|
||||
uses: ./
|
||||
with:
|
||||
artifact: test-results
|
||||
name: Workflow Report
|
||||
path: 'playwright-report.xml'
|
||||
reporter: jest-junit
|
||||
path: playwright-report.xml
|
||||
reporter: java-junit
|
||||
show-html-notice: true
|
||||
list-suites: 'non-skipped'
|
||||
|
|
|
|||
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
|
@ -313,8 +313,8 @@ class TestReporter {
|
|||
return yield this.octokit.rest.checks.update(Object.assign(Object.assign({}, requestParams), { output: Object.assign(Object.assign({}, requestParams.output), { annotations }) }));
|
||||
});
|
||||
this.octokit = github.getOctokit(this.token);
|
||||
if (this.listSuites !== 'all' && this.listSuites !== 'failed') {
|
||||
core.setFailed(`Input parameter 'list-suites' has invalid value`);
|
||||
if (this.listSuites !== 'all' && this.listSuites !== 'failed' && this.listSuites !== 'non-skipped') {
|
||||
core.setFailed(`Input parameter 'list-suites' has invalid value of ${this.listSuites}`);
|
||||
return;
|
||||
}
|
||||
if (this.listTests !== 'all' && this.listTests !== 'failed' && this.listTests !== 'none') {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class TestReporter {
|
|||
this.octokit = github.getOctokit(this.token)
|
||||
|
||||
if (this.listSuites !== 'all' && this.listSuites !== 'failed' && this.listSuites !== 'non-skipped') {
|
||||
core.setFailed(`Input parameter 'list-suites' has invalid value`)
|
||||
core.setFailed(`Input parameter 'list-suites' has invalid value of ${this.listSuites}`)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue