diff --git a/.github/workflows/playwright-report-test.yml b/.github/workflows/playwright-report-test.yml index 65f7cce..47b80c2 100644 --- a/.github/workflows/playwright-report-test.yml +++ b/.github/workflows/playwright-report-test.yml @@ -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' diff --git a/dist/index.js b/dist/index.js index 50bc832..c397919 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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') { diff --git a/src/main.ts b/src/main.ts index 45546cf..d35926d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 }