feat(CI): Add Continuous Integration workflows for Gitea with Docker-based setup

This commit is contained in:
2025-01-29 18:00:43 +01:00
parent b46fb0f042
commit 2d1c037301
14 changed files with 250 additions and 44 deletions

View File

@@ -31,7 +31,7 @@ export class TsWatch {
filePathToWatch: paths.cwd,
commandToExecute: 'npm run test2',
timeout: null,
})
}),
);
break;
case 'node':
@@ -40,7 +40,7 @@ export class TsWatch {
filePathToWatch: paths.cwd,
commandToExecute: 'npm run test',
timeout: null,
})
}),
);
break;
case 'element':
@@ -51,7 +51,7 @@ export class TsWatch {
// lets create a standard server
logger.log(
'info',
'bundling TypeScript files to "dist_watch" Note: This is for development only!'
'bundling TypeScript files to "dist_watch" Note: This is for development only!',
);
this.typedserver = new plugins.typedserver.TypedServer({
cors: true,
@@ -75,13 +75,13 @@ export class TsWatch {
await bundleAndReloadElement();
},
timeout: null,
})
}),
);
// lets get the other ts folders
let tsfolders = await plugins.smartfile.fs.listFolders(paths.cwd);
tsfolders = tsfolders.filter(
(itemArg) => itemArg.startsWith('ts') && itemArg !== 'ts_web'
(itemArg) => itemArg.startsWith('ts') && itemArg !== 'ts_web',
);
const smartshellInstance = new plugins.smartshell.Smartshell({
executor: 'bash',
@@ -97,7 +97,7 @@ export class TsWatch {
await bundleAndReloadElement();
},
timeout: null,
})
}),
);
}
@@ -113,7 +113,7 @@ export class TsWatch {
await bundleAndReloadElement();
},
timeout: null,
})
}),
);
})();
break;
@@ -127,7 +127,7 @@ export class TsWatch {
};
let tsfolders = await plugins.smartfile.fs.listFolders(paths.cwd);
tsfolders = tsfolders.filter(
(itemArg) => itemArg.startsWith('ts') && itemArg !== 'ts_web'
(itemArg) => itemArg.startsWith('ts') && itemArg !== 'ts_web',
);
for (const tsfolder of tsfolders) {
this.watcherMap.add(
@@ -138,7 +138,7 @@ export class TsWatch {
await bundleAndReloadWebsite();
},
timeout: null,
})
}),
);
}
this.watcherMap.add(
@@ -148,7 +148,7 @@ export class TsWatch {
await bundleAndReloadWebsite();
},
timeout: null,
})
}),
);
this.watcherMap.add(
new Watcher({
@@ -162,7 +162,17 @@ export class TsWatch {
await bundleAndReloadWebsite();
},
timeout: null,
})
}),
);
this.watcherMap.add(
new Watcher({
filePathToWatch: plugins.path.join(paths.cwd, './assets/'),
functionToCall: async () => {
await assetsHandler.processAssets();
await bundleAndReloadWebsite();
},
timeout: null,
}),
);
})();
break;
@@ -172,7 +182,7 @@ export class TsWatch {
filePathToWatch: plugins.path.join(paths.cwd, './ts/'),
commandToExecute: 'npm run startTs',
timeout: null,
})
}),
);
break;
case 'echo':