mirror of https://github.com/actions/toolkit
fix: changes to v0.2.0
parent
bf3e9761d4
commit
50d47a9685
|
@ -2,10 +2,10 @@ import * as cache from '../src/cache'
|
|||
|
||||
test('isFeatureAvailable returns true if server url is set', () => {
|
||||
try {
|
||||
process.env['ACTIONS_CACHE_URL'] = 'http://cache.com'
|
||||
process.env['WARP_CACHE_URL'] = 'http://cache.com'
|
||||
expect(cache.isFeatureAvailable()).toBe(true)
|
||||
} finally {
|
||||
delete process.env['ACTIONS_CACHE_URL']
|
||||
delete process.env['WARP_CACHE_URL']
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "github-actions.warp-cache",
|
||||
"version": "0.1.1",
|
||||
"version": "0.2.0",
|
||||
"preview": true,
|
||||
"description": "Github action to use WarpBuild's in-house cache offering",
|
||||
"keywords": [
|
||||
|
|
|
@ -50,7 +50,7 @@ function checkKey(key: string): void {
|
|||
*/
|
||||
|
||||
export function isFeatureAvailable(): boolean {
|
||||
return !!process.env['ACTIONS_CACHE_URL']
|
||||
return !!process.env['WARP_CACHE_URL']
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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['NODE_DEBUG'] = 'http'
|
||||
|
||||
|
|
Loading…
Reference in New Issue