适配runner 0.2.7

This commit is contained in:
空巷一人
2024-03-27 16:13:38 +08:00
parent 39251b9be0
commit 9034def559
4 changed files with 56 additions and 43 deletions
+19 -19
View File
@@ -47,33 +47,33 @@ describe('gitea-tool-cache', () => {
}, 200000);
// 测试时需要把别的注释掉
// it('installs windows', async () => {
// rmSync('./cache', { recursive: true, force: true });
// os['platform'] = 'win32';
// os['arch'] = 'x64';
// // node
// inputs['node-version'] = '18';
// await nodeInstall();
// // // go
// // inputs['go-version'] = '1.21.1';
// // await goInstall();
// // dotnet
// // inputs['dotnet-version'] = '6.0.100';
// // await dotnetInstall();
// });
it('installs linux', async () => {
rmSync('./cache', { recursive: true, force: true });
os['platform'] = 'linux';
it('installs windows', async () => {
// rmSync('./cache', { recursive: true, force: true });
os['platform'] = 'win32';
os['arch'] = 'x64';
// node
inputs['node-version'] = '18';
await nodeInstall();
// // go
// inputs['go-version'] = '1.21.1';
// await goInstall();
// inputs['dotnet-version'] = '5.0.401';
// dotnet
// inputs['dotnet-version'] = '6.0.100';
// await dotnetInstall();
});
// it('installs linux', async () => {
// // rmSync('./cache', { recursive: true, force: true });
// os['platform'] = 'linux';
// os['arch'] = 'x64';
// inputs['node-version'] = '18';
// await nodeInstall();
// inputs['go-version'] = '1.21.1';
// await goInstall();
// inputs['dotnet-version'] = '5.0.401';
// await dotnetInstall();
// });
// it('installs darwin', async () => {
// os['platform'] = 'darwin';
// os['arch'] = 'x64';