@cypress/github-action 4.1.0 → 4.1.1

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/dist/index.js +10 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -74623,6 +74623,7 @@ const cliParser = __nccwpck_require__(8604)()
74623
74623
  const findYarnWorkspaceRoot = __nccwpck_require__(6748)
74624
74624
  const debug = __nccwpck_require__(8237)('@cypress/github-action')
74625
74625
  const { ping } = __nccwpck_require__(9390)
74626
+ const { SUMMARY_ENV_VAR } = __nccwpck_require__(1327)
74626
74627
 
74627
74628
  /**
74628
74629
  * Parses input command, finds the tool and
@@ -75359,7 +75360,16 @@ const runTests = async () => {
75359
75360
  .then(onTestsFinished, onTestsError)
75360
75361
  }
75361
75362
 
75363
+ // Summary is not available for GitHub Enterprise at the moment
75364
+ const isSummaryEnabled = () => {
75365
+ return process.env[SUMMARY_ENV_VAR] !== undefined
75366
+ }
75367
+
75362
75368
  const generateSummary = async (testResults) => {
75369
+ if (!isSummaryEnabled()) {
75370
+ return testResults
75371
+ }
75372
+
75363
75373
  const headers = [
75364
75374
  { data: 'Result', header: true },
75365
75375
  { data: 'Passed :white_check_mark:', header: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/github-action",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "GitHub Action for running Cypress end-to-end tests",
5
5
  "private": false,
6
6
  "main": "dist/index.js",