-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
167b3ea
commit a4559a7
Showing
2 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144121,14 +144121,31 @@ const readActionInputs = () => ({ | |
|
||
// EXTERNAL MODULE: ./node_modules/.pnpm/@[email protected]/node_modules/@actions/artifact/lib/internal/client.js | ||
var client = __nccwpck_require__(47044); | ||
;// CONCATENATED MODULE: external "node:crypto" | ||
const external_node_crypto_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto"); | ||
var external_node_crypto_default = /*#__PURE__*/__nccwpck_require__.n(external_node_crypto_namespaceObject); | ||
;// CONCATENATED MODULE: ./src/helpers/constants.ts | ||
|
||
|
||
const ERROR_WEIGHT = 1.5; | ||
const LOW_HEALTH_THRESHOLD = 75; | ||
const MEDIUM_HEALTH_THRESHOLD = 85; | ||
const OK_HEALTH_THRESHOLD = 95; | ||
const ASSETS_URL = "https://raw.githubusercontent.com/brenoepics/vmd-action/main/src/templates/"; | ||
const ISSUES_URL = "https://github.com/brenoepics/vmd-action/issues/"; | ||
const REPORT_PATH = "vmd-analysis.json"; | ||
const WORKFLOW_HASH = external_node_crypto_default().createHash("sha256") | ||
.update(lib_github.context.workflow) | ||
.digest("hex"); | ||
|
||
;// CONCATENATED MODULE: ./src/github/artifact.ts | ||
|
||
|
||
|
||
function generateArtifactName() { | ||
const prefix = "vmd-report"; | ||
const randomHash = Math.floor(Math.random() * 1e8).toString(); | ||
const timestamp = Date.now().toString(); | ||
return `${prefix}-${randomHash}-${timestamp}`; | ||
return `${prefix}-${WORKFLOW_HASH}-${randomHash}`; | ||
} | ||
async function uploadOutputArtifact(coverageFilePath) { | ||
let artifactId; | ||
|
@@ -144239,15 +144256,6 @@ const singleReport = (report) => { | |
return `\n ${report.id}: ${report.message}`; | ||
}; | ||
|
||
;// CONCATENATED MODULE: ./src/helpers/constants.ts | ||
const ERROR_WEIGHT = 1.5; | ||
const LOW_HEALTH_THRESHOLD = 75; | ||
const MEDIUM_HEALTH_THRESHOLD = 85; | ||
const OK_HEALTH_THRESHOLD = 95; | ||
const ASSETS_URL = "https://raw.githubusercontent.com/brenoepics/vmd-action/main/src/templates/"; | ||
const ISSUES_URL = "https://github.com/brenoepics/vmd-action/issues/"; | ||
const REPORT_PATH = "vmd-analysis.json"; | ||
|
||
;// CONCATENATED MODULE: ./src/templates/badgeTemplate.ts | ||
|
||
|
||
|
@@ -144570,9 +144578,8 @@ var cache = __nccwpck_require__(10184); | |
|
||
|
||
|
||
const workflow = lib_github.context.workflow; | ||
async function saveCache(filePath, branch) { | ||
const cacheId = `vmd-analysis-${branch}-${workflow}`; | ||
const cacheId = `vmd-analysis-${branch}-${WORKFLOW_HASH}`; | ||
const cachePaths = [filePath]; | ||
try { | ||
await cache.saveCache(cachePaths, cacheId); | ||
|
@@ -144582,7 +144589,7 @@ async function saveCache(filePath, branch) { | |
} | ||
} | ||
async function restoreCache(branch, cachePath) { | ||
const cacheId = `vmd-analysis-${branch}-${workflow}`; | ||
const cacheId = `vmd-analysis-${branch}-${WORKFLOW_HASH}`; | ||
try { | ||
const cacheKey = await cache.restoreCache([cachePath], cacheId); | ||
if (cacheKey) { | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.