mirror of
https://git.studyfor.work/actions/gitea-tool-cache.git
synced 2026-08-31 20:02:09 -04:00
添加mac环境
This commit is contained in:
+32
-19
@@ -47,20 +47,20 @@ 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 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 });
|
||||
@@ -74,14 +74,27 @@ describe('gitea-tool-cache', () => {
|
||||
// await dotnetInstall();
|
||||
// });
|
||||
|
||||
// it('installs darwin', async () => {
|
||||
// it('installs darwin x64', async () => {
|
||||
// // rmSync('./cache', { recursive: true, force: true });
|
||||
// os['platform'] = 'darwin';
|
||||
// os['arch'] = 'x64';
|
||||
// inputs['node-version'] = '18.18.0';
|
||||
// await nodeInstall();
|
||||
// inputs['go-version'] = '1.21.1';
|
||||
// await goInstall();
|
||||
// // inputs['node-version'] = '18.18.0';
|
||||
// // await nodeInstall();
|
||||
// // inputs['go-version'] = '1.21.1';
|
||||
// // await goInstall();
|
||||
// inputs['dotnet-version'] = '5.0.401';
|
||||
// await dotnetInstall();
|
||||
// });
|
||||
|
||||
it('installs darwin arm64', async () => {
|
||||
rmSync('./cache', { recursive: true, force: true });
|
||||
os['platform'] = 'darwin';
|
||||
os['arch'] = 'arm64';
|
||||
// inputs['node-version'] = '18.18.0';
|
||||
// await nodeInstall();
|
||||
// inputs['go-version'] = '1.21.1';
|
||||
// await goInstall();
|
||||
inputs['dotnet-version'] = '6.0.422';
|
||||
await dotnetInstall();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user