mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Clean up code and remove testing comments
This commit is contained in:
parent
3ddec5a563
commit
b0216aca55
4 changed files with 5 additions and 13 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -27,11 +27,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: __tests__/__results__/*.xml
|
path: __tests__/__results__/*.xml
|
||||||
|
|
||||||
- name: Workflow Test
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
name: Workflow Report
|
|
||||||
path: '*.xml'
|
|
||||||
reporter: jest-junit
|
|
||||||
show-html-notice: true
|
|
||||||
|
|
|
||||||
6
.github/workflows/test-report.yml
vendored
6
.github/workflows/test-report.yml
vendored
|
|
@ -1,7 +1,10 @@
|
||||||
name: Test Report
|
name: Test Report
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_run:
|
||||||
|
workflows: ['CI']
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
report:
|
report:
|
||||||
|
|
@ -11,6 +14,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
|
artifact: test-results
|
||||||
name: Workflow Report
|
name: Workflow Report
|
||||||
path: '*.xml'
|
path: '*.xml'
|
||||||
reporter: jest-junit
|
reporter: jest-junit
|
||||||
|
|
|
||||||
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -412,8 +412,6 @@ class TestReporter {
|
||||||
core.info(`Check run create response: ${resp.status}`);
|
core.info(`Check run create response: ${resp.status}`);
|
||||||
core.info(`Check run URL: ${resp.data.url}`);
|
core.info(`Check run URL: ${resp.data.url}`);
|
||||||
core.info(`Check run HTML: ${resp.data.html_url}`);
|
core.info(`Check run HTML: ${resp.data.html_url}`);
|
||||||
core.info(`****** TEST *****`);
|
|
||||||
core.info(`Status of showHTML: ${this.showHTMLNotice}`);
|
|
||||||
if (this.showHTMLNotice) {
|
if (this.showHTMLNotice) {
|
||||||
console.log(`::notice title=Test Results::${resp.data.html_url}`);
|
console.log(`::notice title=Test Results::${resp.data.html_url}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -199,8 +199,6 @@ class TestReporter {
|
||||||
core.info(`Check run create response: ${resp.status}`)
|
core.info(`Check run create response: ${resp.status}`)
|
||||||
core.info(`Check run URL: ${resp.data.url}`)
|
core.info(`Check run URL: ${resp.data.url}`)
|
||||||
core.info(`Check run HTML: ${resp.data.html_url}`)
|
core.info(`Check run HTML: ${resp.data.html_url}`)
|
||||||
core.info(`****** TEST *****`)
|
|
||||||
core.info(`Status of showHTML: ${this.showHTMLNotice}`)
|
|
||||||
if (this.showHTMLNotice) {
|
if (this.showHTMLNotice) {
|
||||||
console.log(`::notice title=Test Results::${resp.data.html_url}`)
|
console.log(`::notice title=Test Results::${resp.data.html_url}`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue