Update mock-server, upload ci logs on failure

This commit is contained in:
Fedor Indutny 2022-02-24 17:21:56 -08:00 committed by GitHub
parent 21db47c423
commit 1d89ffcc2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 83 additions and 10 deletions

View file

@ -148,6 +148,15 @@ export class Bootstrap {
debug('setting storage path=%j', this.storagePath);
}
public get logsDir(): string {
assert(
this.storagePath !== undefined,
'Bootstrap has to be initialized first, see: bootstrap.init()'
);
return path.join(this.storagePath, 'logs');
}
public async teardown(): Promise<void> {
debug('tearing down');