Use new feature flag architecture when uploading databases

This commit is contained in:
Henry Mercer 2021-12-14 20:48:32 +00:00
parent 04671efa1d
commit d6499fad61
18 changed files with 158 additions and 177 deletions

View file

@ -25,6 +25,8 @@ test("analyze action with RAM & threads from environment variables", async (t) =
.resolves({} as actionsUtil.StatusReportBase);
sinon.stub(actionsUtil, "sendStatusReport").resolves(true);
sinon.stub(configUtils, "getConfig").resolves({
// Use GHES so we don't try to call the feature flags API endpoint
gitHubVersion: { type: util.GitHubVariant.GHES, version: "3.0.0" },
languages: [],
} as unknown as configUtils.Config);
const requiredInputStub = sinon.stub(actionsUtil, "getRequiredInput");