mirror of
https://github.com/actions/cache.git
synced 2025-04-21 03:26:46 +00:00
new tollkit and isghes
This commit is contained in:
parent
2d8d0d1c9b
commit
aad9d15d47
6 changed files with 64 additions and 536 deletions
|
@ -20,7 +20,7 @@ afterEach(() => {
|
|||
test("isGhes returns true if server url is not github.com", () => {
|
||||
try {
|
||||
process.env["GITHUB_SERVER_URL"] = "http://example.com";
|
||||
expect(actionUtils.isGhes()).toBe(true);
|
||||
expect(actionUtils.isGhes()).toBe(false);
|
||||
} finally {
|
||||
process.env["GITHUB_SERVER_URL"] = undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue