From 233b58ff4ce40f293439ae11ded63133e2cb713c Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi Date: Tue, 6 May 2025 19:50:44 +0000 Subject: [PATCH 1/5] add env variable for cache tests --- __tests__/__fixtures__/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__tests__/__fixtures__/index.js b/__tests__/__fixtures__/index.js index b8057c2..d1e7290 100644 --- a/__tests__/__fixtures__/index.js +++ b/__tests__/__fixtures__/index.js @@ -11,4 +11,7 @@ fs.appendFileSync(filePath, `ACTIONS_CACHE_URL=${process.env.ACTIONS_CACHE_URL}$ }) fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL}`, { encoding: 'utf8' +}) +fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true`, { + encoding: 'utf8' }) \ No newline at end of file From 61892208ae01c9deb9c36b4ed2eeb85297e49761 Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi Date: Tue, 6 May 2025 20:02:27 +0000 Subject: [PATCH 2/5] change url --- __tests__/__fixtures__/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/__fixtures__/index.js b/__tests__/__fixtures__/index.js index d1e7290..5e59d99 100644 --- a/__tests__/__fixtures__/index.js +++ b/__tests__/__fixtures__/index.js @@ -6,12 +6,12 @@ const filePath = process.env[`GITHUB_ENV`] fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, { encoding: 'utf8' }) -fs.appendFileSync(filePath, `ACTIONS_CACHE_URL=${process.env.ACTIONS_CACHE_URL}${os.EOL}`, { +fs.appendFileSync(filePath, `ACTIONS_CACHE_URL=${process.env.ACTIONS_RESULTS_URL}${os.EOL}`, { encoding: 'utf8' }) fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL}`, { encoding: 'utf8' }) -fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true`, { +fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true${os.EOL}`, { encoding: 'utf8' }) \ No newline at end of file From 7e000b8182e5bf8268ea90a6fc4925c5106240bd Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi Date: Tue, 6 May 2025 20:08:50 +0000 Subject: [PATCH 3/5] don't need that maybe --- __tests__/__fixtures__/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/__tests__/__fixtures__/index.js b/__tests__/__fixtures__/index.js index 5e59d99..bf8b373 100644 --- a/__tests__/__fixtures__/index.js +++ b/__tests__/__fixtures__/index.js @@ -6,9 +6,6 @@ const filePath = process.env[`GITHUB_ENV`] fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, { encoding: 'utf8' }) -fs.appendFileSync(filePath, `ACTIONS_CACHE_URL=${process.env.ACTIONS_RESULTS_URL}${os.EOL}`, { - encoding: 'utf8' -}) fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL}`, { encoding: 'utf8' }) From fee58efe37dfc16a03ae67a5509dbd163400276a Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi Date: Tue, 6 May 2025 20:22:05 +0000 Subject: [PATCH 4/5] maybe this works instead --- __tests__/__fixtures__/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__tests__/__fixtures__/index.js b/__tests__/__fixtures__/index.js index bf8b373..0ae88ea 100644 --- a/__tests__/__fixtures__/index.js +++ b/__tests__/__fixtures__/index.js @@ -11,4 +11,7 @@ fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL} }) fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true${os.EOL}`, { encoding: 'utf8' +}) +fs.appendFileSync(filePath, `ACTIONS_RESULTS_URL=${process.env.ACTIONS_RESULTS_URL}${os.EOL}`, { + encoding: 'utf8' }) \ No newline at end of file From 62997f4a4ac99ad70eabe594b040a87d823f950e Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi Date: Wed, 7 May 2025 08:31:17 +0000 Subject: [PATCH 5/5] alphabetically order them --- __tests__/__fixtures__/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__tests__/__fixtures__/index.js b/__tests__/__fixtures__/index.js index 0ae88ea..d5e28c0 100644 --- a/__tests__/__fixtures__/index.js +++ b/__tests__/__fixtures__/index.js @@ -3,15 +3,15 @@ const fs = require('fs'); const os = require('os'); const filePath = process.env[`GITHUB_ENV`] -fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, { - encoding: 'utf8' -}) -fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL}`, { - encoding: 'utf8' -}) fs.appendFileSync(filePath, `ACTIONS_CACHE_SERVICE_V2=true${os.EOL}`, { encoding: 'utf8' }) fs.appendFileSync(filePath, `ACTIONS_RESULTS_URL=${process.env.ACTIONS_RESULTS_URL}${os.EOL}`, { encoding: 'utf8' +}) +fs.appendFileSync(filePath, `ACTIONS_RUNTIME_TOKEN=${process.env.ACTIONS_RUNTIME_TOKEN}${os.EOL}`, { + encoding: 'utf8' +}) +fs.appendFileSync(filePath, `GITHUB_RUN_ID=${process.env.GITHUB_RUN_ID}${os.EOL}`, { + encoding: 'utf8' }) \ No newline at end of file