feat: github-api-url (#88)
closes #77 --------- Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
13
tests/main-custom-github-api-url.test.js
Normal file
13
tests/main-custom-github-api-url.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { test, DEFAULT_ENV } from "./main.js";
|
||||
|
||||
// Verify that main works with a custom GitHub API URL passed as `github-api-url` input
|
||||
await test(
|
||||
() => {
|
||||
process.env.INPUT_OWNER = process.env.GITHUB_REPOSITORY_OWNER;
|
||||
process.env.INPUT_REPOSITORIES = process.env.GITHUB_REPOSITORY;
|
||||
},
|
||||
{
|
||||
...DEFAULT_ENV,
|
||||
"INPUT_GITHUB-API-URL": "https://github.acme-inc.com/api/v3",
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user