@cypress/github-action 5.7.0 → 5.7.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.
- package/dist/index.js +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74479,7 +74479,7 @@ const noLockFile = () => {
|
|
|
74479
74479
|
process.exit(1)
|
|
74480
74480
|
}
|
|
74481
74481
|
|
|
74482
|
-
// enforce the same
|
|
74482
|
+
// enforce the same npm cache folder across different operating systems
|
|
74483
74483
|
const NPM_CACHE_FOLDER = path.join(homeDirectory, '.npm')
|
|
74484
74484
|
const getNpmCache = () => {
|
|
74485
74485
|
const o = {}
|
|
@@ -74505,7 +74505,7 @@ const getNpmCache = () => {
|
|
|
74505
74505
|
o.inputPath = NPM_CACHE_FOLDER
|
|
74506
74506
|
}
|
|
74507
74507
|
|
|
74508
|
-
// use exact restore key to prevent
|
|
74508
|
+
// use exact restore key to prevent npm cache from growing
|
|
74509
74509
|
// https://glebbahmutov.com/blog/do-not-let-npm-cache-snowball/
|
|
74510
74510
|
o.restoreKeys = o.primaryKey = key
|
|
74511
74511
|
return o
|
|
@@ -74532,21 +74532,21 @@ const getCypressBinaryCache = () => {
|
|
|
74532
74532
|
}
|
|
74533
74533
|
|
|
74534
74534
|
const restoreCachedNpm = () => {
|
|
74535
|
-
debug('trying to restore cached
|
|
74535
|
+
debug('trying to restore cached npm modules')
|
|
74536
74536
|
const NPM_CACHE = getNpmCache()
|
|
74537
74537
|
return restoreCache([NPM_CACHE.inputPath], NPM_CACHE.primaryKey, [
|
|
74538
74538
|
NPM_CACHE.restoreKeys
|
|
74539
74539
|
]).catch((e) => {
|
|
74540
|
-
console.warn('Restoring
|
|
74540
|
+
console.warn('Restoring npm cache error: %s', e.message)
|
|
74541
74541
|
})
|
|
74542
74542
|
}
|
|
74543
74543
|
|
|
74544
74544
|
const saveCachedNpm = () => {
|
|
74545
|
-
debug('saving
|
|
74545
|
+
debug('saving npm modules')
|
|
74546
74546
|
const NPM_CACHE = getNpmCache()
|
|
74547
74547
|
return saveCache([NPM_CACHE.inputPath], NPM_CACHE.primaryKey).catch(
|
|
74548
74548
|
(e) => {
|
|
74549
|
-
console.warn('Saving
|
|
74549
|
+
console.warn('Saving npm cache error: %s', e.message)
|
|
74550
74550
|
}
|
|
74551
74551
|
)
|
|
74552
74552
|
}
|
|
@@ -74584,7 +74584,7 @@ const install = () => {
|
|
|
74584
74584
|
// prevent lots of progress messages during install
|
|
74585
74585
|
core.exportVariable('CI', '1')
|
|
74586
74586
|
core.exportVariable('CYPRESS_CACHE_FOLDER', CYPRESS_CACHE_FOLDER)
|
|
74587
|
-
// set
|
|
74587
|
+
// set npm cache path in case the user has custom install command
|
|
74588
74588
|
core.exportVariable('npm_config_cache', NPM_CACHE_FOLDER)
|
|
74589
74589
|
|
|
74590
74590
|
// Note: need to quote found tool to avoid Windows choking on
|
|
@@ -74596,7 +74596,7 @@ const install = () => {
|
|
|
74596
74596
|
}
|
|
74597
74597
|
|
|
74598
74598
|
if (useYarn()) {
|
|
74599
|
-
debug('installing
|
|
74599
|
+
debug('installing npm dependencies using Yarn')
|
|
74600
74600
|
return io.which('yarn', true).then((yarnPath) => {
|
|
74601
74601
|
debug(`yarn at "${yarnPath}"`)
|
|
74602
74602
|
return exec.exec(
|
|
@@ -74606,7 +74606,7 @@ const install = () => {
|
|
|
74606
74606
|
)
|
|
74607
74607
|
})
|
|
74608
74608
|
} else if (usePnpm()) {
|
|
74609
|
-
debug('installing
|
|
74609
|
+
debug('installing npm dependencies using pnpm')
|
|
74610
74610
|
return io.which('pnpm', true).then((pnpmPath) => {
|
|
74611
74611
|
debug(`pnpm at "${pnpmPath}"`)
|
|
74612
74612
|
return exec.exec(
|
|
@@ -74616,7 +74616,7 @@ const install = () => {
|
|
|
74616
74616
|
)
|
|
74617
74617
|
})
|
|
74618
74618
|
} else {
|
|
74619
|
-
debug('installing
|
|
74619
|
+
debug('installing npm dependencies')
|
|
74620
74620
|
return io.which('npm', true).then((npmPath) => {
|
|
74621
74621
|
debug(`npm at "${npmPath}"`)
|
|
74622
74622
|
return exec.exec(quote(npmPath), ['ci'], cypressCommandOptions)
|
|
@@ -75034,7 +75034,7 @@ const runTests = async () => {
|
|
|
75034
75034
|
'cypress'
|
|
75035
75035
|
const cypress = require(cypressModulePath)
|
|
75036
75036
|
|
|
75037
|
-
debug('Running Cypress tests using
|
|
75037
|
+
debug('Running Cypress tests using Module API')
|
|
75038
75038
|
debug(`requiring cypress dependency, cwd is ${process.cwd()}`)
|
|
75039
75039
|
debug(`working directory ${workingDirectory}`)
|
|
75040
75040
|
debug(`resolved cypress ${cypressModulePath}`)
|