@testomatio/reporter 1.3.1-beta.3 → 1.3.1-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/pipe/github.js +5 -13
  2. package/package.json +1 -1
@@ -21,7 +21,7 @@ class GitHubPipe {
21
21
  this.token = params.GH_PAT || process.env.GH_PAT;
22
22
  this.ref = process.env.GITHUB_REF;
23
23
  this.repo = process.env.GITHUB_REPOSITORY;
24
- this.jobKey = `${process.env.GITHUB_WORKFLOW || ''}/${process.env.GITHUB_JOB || ''}`
24
+ this.jobKey = `${process.env.GITHUB_WORKFLOW || ''} / ${process.env.GITHUB_JOB || ''}`
25
25
  this.hiddenCommentData = `<!--- testomat.io report ${this.jobKey} -->`;
26
26
 
27
27
  debug('GitHub Pipe: ', this.token ? 'TOKEN' : '*no token*', 'Ref:', this.ref, 'Repo:', this.repo);
@@ -82,25 +82,17 @@ class GitHubPipe {
82
82
  )} **${passedCount}** passed; **${statusEmoji('skipped')}** ${skippedCount} skipped |
83
83
  | Duration | 🕐 **${humanizeDuration(parseInt(this.tests.reduce((a, t) => a + (t.run_time || 0), 0), 10), {
84
84
  maxDecimalPoints: 0,
85
- })}** |
86
- `;
85
+ })}** |`;
86
+
87
87
  if (this.store.runUrl) {
88
- summary += `| Testomat.io Report | 📊 [Run #${this.store.runId}](${this.store.runUrl}) | `;
88
+ summary += `\n| Testomat.io Report | 📊 [Run #${this.store.runId}](${this.store.runUrl}) | `;
89
89
  }
90
90
  if (process.env.GITHUB_WORKFLOW) {
91
- summary += `\n| Job | 🗂️ ${this.jobKey} | `;
91
+ summary += `\n| Job | 🗂️ [${this.jobKey}](${process.env.GITHUB_SERVER_URL || 'https://github.com'}/${this.repo}/actions/runs/${process.env.GITHUB_RUN_ID}) | `;
92
92
  }
93
93
  if (process.env.RUNNER_OS) {
94
94
  summary += `\n| Operating System | 🖥️ \`${process.env.RUNNER_OS}\` ${process.env.RUNNER_ARCH || ''} | `;
95
95
  }
96
- if (process.env.GITHUB_HEAD_REF) {
97
- summary += `\n| Branch | 🌳 \`${process.env.GITHUB_HEAD_REF}\` | `;
98
- }
99
- if (process.env.GITHUB_RUN_ID) {
100
- summary += `\n| Build Log | ✒️ ${process.env.GITHUB_SERVER_URL || 'https://github.com'}/${
101
- this.repo
102
- }/actions/runs/${process.env.GITHUB_RUN_ID} | `;
103
- }
104
96
 
105
97
  const failures = this.tests
106
98
  .filter(t => t.status === 'failed')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "1.3.1-beta.3",
3
+ "version": "1.3.1-beta.5",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "typings": "typings/index.d.ts",