Remove concept of Actions / runner mode

This commit is contained in:
Henry Mercer 2022-11-14 16:37:48 +00:00
parent 51abddb49b
commit b498c79130
45 changed files with 222 additions and 378 deletions

4
lib/util.test.js generated
View file

@ -305,9 +305,8 @@ for (const [version, githubVersion, shouldReportWarning,] of CHECK_ACTION_VERSIO
(0, ava_1.default)(`checkActionVersion ${reportWarningDescription} for ${versionsDescription}`, async (t) => {
const warningSpy = sinon.spy(core, "warning");
const versionStub = sinon
.stub(api, "getGitHubVersionActionsOnly")
.stub(api, "getGitHubVersion")
.resolves(githubVersion);
const isActionsStub = sinon.stub(util, "isActions").returns(true);
await util.checkActionVersion(version);
if (shouldReportWarning) {
t.true(warningSpy.calledOnceWithExactly(sinon.match("CodeQL Action v1 will be deprecated")));
@ -316,7 +315,6 @@ for (const [version, githubVersion, shouldReportWarning,] of CHECK_ACTION_VERSIO
t.false(warningSpy.called);
}
versionStub.restore();
isActionsStub.restore();
});
}
(0, ava_1.default)("doesDirectoryExist", async (t) => {