File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,24 @@ afterEach(() => {
1717 delete process . env [ RefKey ] ;
1818} ) ;
1919
20+ test ( "isGhes returns true if server url is not github.com" , ( ) => {
21+ try {
22+ process . env [ "GITHUB_SERVER_URL" ] = "http://example.com" ;
23+ expect ( actionUtils . isGhes ( ) ) . toBe ( true ) ;
24+ } finally {
25+ process . env [ "GITHUB_SERVER_URL" ] = undefined ;
26+ }
27+ } ) ;
28+
29+ test ( "isGhes returns true when server url is github.com" , ( ) => {
30+ try {
31+ process . env [ "GITHUB_SERVER_URL" ] = "http://github.com" ;
32+ expect ( actionUtils . isGhes ( ) ) . toBe ( false ) ;
33+ } finally {
34+ process . env [ "GITHUB_SERVER_URL" ] = undefined ;
35+ }
36+ } ) ;
37+
2038test ( "isExactKeyMatch with undefined cache key returns false" , ( ) => {
2139 const key = "linux-rust" ;
2240 const cacheKey = undefined ;
You can’t perform that action at this time.
0 commit comments