1
0
Fork 0

fix: changes to v0.2.0

pull/1716/head
Prajjwal 2023-11-30 15:33:09 +05:30
parent bf3e9761d4
commit 50d47a9685
4 changed files with 5 additions and 5 deletions

View File

@ -2,10 +2,10 @@ import * as cache from '../src/cache'
test('isFeatureAvailable returns true if server url is set', () => { test('isFeatureAvailable returns true if server url is set', () => {
try { try {
process.env['ACTIONS_CACHE_URL'] = 'http://cache.com' process.env['WARP_CACHE_URL'] = 'http://cache.com'
expect(cache.isFeatureAvailable()).toBe(true) expect(cache.isFeatureAvailable()).toBe(true)
} finally { } finally {
delete process.env['ACTIONS_CACHE_URL'] delete process.env['WARP_CACHE_URL']
} }
}) })

View File

@ -1,6 +1,6 @@
{ {
"name": "github-actions.warp-cache", "name": "github-actions.warp-cache",
"version": "0.1.1", "version": "0.2.0",
"preview": true, "preview": true,
"description": "Github action to use WarpBuild's in-house cache offering", "description": "Github action to use WarpBuild's in-house cache offering",
"keywords": [ "keywords": [

View File

@ -50,7 +50,7 @@ function checkKey(key: string): void {
*/ */
export function isFeatureAvailable(): boolean { export function isFeatureAvailable(): boolean {
return !!process.env['ACTIONS_CACHE_URL'] return !!process.env['WARP_CACHE_URL']
} }
/** /**

View File

@ -1,6 +1,6 @@
import {deleteCache, restoreCache, saveCache} from './cache' import {deleteCache, restoreCache, saveCache} from './cache'
process.env['ACTIONS_CACHE_URL'] = 'http://localhost:8002' process.env['WARP_CACHE_URL'] = 'http://localhost:8002'
process.env['RUNNER_TEMP'] = '/Users/prajjwal/Repos/warpbuild/playground/tmp_fs' process.env['RUNNER_TEMP'] = '/Users/prajjwal/Repos/warpbuild/playground/tmp_fs'
process.env['NODE_DEBUG'] = 'http' process.env['NODE_DEBUG'] = 'http'