16 lines
485 B
JavaScript
16 lines
485 B
JavaScript
import { DEFAULT_ENV } from "./main.js";
|
|
|
|
// Verify `main` exits with an error when `enterprise` is used with `repositories` input.
|
|
try {
|
|
// Set up environment with enterprise and repositories both set
|
|
for (const [key, value] of Object.entries(DEFAULT_ENV)) {
|
|
process.env[key] = value;
|
|
}
|
|
process.env.INPUT_ENTERPRISE = "test-enterprise";
|
|
process.env.INPUT_REPOSITORIES = "repo1,repo2";
|
|
|
|
await import("../main.js");
|
|
} catch (error) {
|
|
console.error(error.message);
|
|
}
|