(source, version)
| 43 | }; |
| 44 | |
| 45 | function getVersionDir(source, version) { |
| 46 | version = version || 'local'; |
| 47 | if (source === 'PR') { |
| 48 | // For PR preview artifacts |
| 49 | const prNumber = version.replace(/^#/, ''); |
| 50 | return `tmp/__version__/pr-${prNumber}`; |
| 51 | } |
| 52 | return `tmp/__version__/${version}`; |
| 53 | } |
| 54 | module.exports.getVersionDir = getVersionDir; |
| 55 | |
| 56 | module.exports.getActionsFullPath = function (testName) { |
no outgoing calls
no test coverage detected
searching dependent graphs…