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
|
name: Workflow test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
- uses: ./
|
uses: actions/checkout@v2
|
||||||
|
- name: Check dirs
|
||||||
|
run: ls
|
||||||
|
- name: Test reporter
|
||||||
|
uses: ./
|
||||||
with:
|
with:
|
||||||
artifact: test-results
|
|
||||||
name: Workflow Report
|
name: Workflow Report
|
||||||
path: 'playwright-report.xml'
|
path: playwright-report.xml
|
||||||
reporter: jest-junit
|
reporter: java-junit
|
||||||
show-html-notice: true
|
show-html-notice: true
|
||||||
list-suites: 'non-skipped'
|
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 }) }));
|
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);
|
this.octokit = github.getOctokit(this.token);
|
||||||
if (this.listSuites !== 'all' && this.listSuites !== 'failed') {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (this.listTests !== 'all' && this.listTests !== 'failed' && this.listTests !== 'none') {
|
if (this.listTests !== 'all' && this.listTests !== 'failed' && this.listTests !== 'none') {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ class TestReporter {
|
||||||
this.octokit = github.getOctokit(this.token)
|
this.octokit = github.getOctokit(this.token)
|
||||||
|
|
||||||
if (this.listSuites !== 'all' && this.listSuites !== 'failed' && this.listSuites !== 'non-skipped') {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue