Clean up code and remove testing comments

This commit is contained in:
Connor Vidlock 2023-03-20 10:57:22 -05:00
parent 3ddec5a563
commit b0216aca55
No known key found for this signature in database
GPG key ID: BADEF4A267C14600
4 changed files with 5 additions and 13 deletions

View file

@ -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

View file

@ -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
View file

@ -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}`);
} }

View file

@ -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}`)
} }