ci: rust build config

This commit is contained in:
LongYinan
2023-05-10 18:38:23 +08:00
parent 8c84daec2b
commit 768e55072d
7 changed files with 142 additions and 14 deletions

View File

@@ -54,9 +54,16 @@ export const test = base.extend<{
electronApp: async ({}, use) => {
// a random id to avoid conflicts between tests
const id = generateUUID();
const ext = process.platform === 'win32' ? '.cmd' : '';
const electronApp = await electron.launch({
args: [resolve(__dirname, '..'), '--app-name', 'affine-test-' + id],
executablePath: resolve(__dirname, '../node_modules/.bin/electron'),
executablePath: resolve(
__dirname,
'..',
'node_modules',
'.bin',
`electron${ext}`
),
colorScheme: 'light',
});
await use(electronApp);