ci: rust build config

This commit is contained in:
LongYinan committed 2023-05-11 14:41:51 +08:00
1 parent 8c84daec2b
commit 768e55072d
7 files changed
+142 -14

No files matched your search

+8 -1
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);