fix(ci): log Electron setup and verify the product Edge runtime
This commit is contained in:
+2
-2
@@ -85,13 +85,13 @@ try {
|
||||
const pythonInfo = JSON.parse(readOutput('python-packages')); assert.equal(pythonInfo.python,lock.python); assert.equal(pythonInfo.pytest,lock.pytest); assert.equal(pythonInfo.pip,lock.pip); assert.notEqual(pythonInfo.prefix,pythonInfo.basePrefix);
|
||||
report.environment.pythonQa = { ...pythonInfo, sha256: fileDigest(python), requirementsSha256: fileDigest(path.join(run.source,'scripts/ci-python-requirements.txt')) };
|
||||
await command('python-pip-check',python,['-I','-m','pip','--isolated','check'],run.tmp);
|
||||
stage = 'explicit-electron-install';
|
||||
await nodeCommand('electron-install',['node_modules/electron/install.js']);
|
||||
const require = createRequire(path.join(run.source,'package.json'));
|
||||
const electron = require('electron'); assert.ok(fs.statSync(electron).isFile(), 'Actual Electron binary missing');
|
||||
report.environment.electron = { executable: electron, sha256: fileDigest(electron) };
|
||||
const { browserInstallation } = await import(pathToFileURL(path.join(run.source,'src/core/browser/browser-driver.mjs')).href);
|
||||
const edge = browserInstallation(run.source); assert.equal(edge.status,'available','Actual Microsoft Edge is required; do not skip browser tests.'); report.environment.edge = edge;
|
||||
stage = 'chromium-install';
|
||||
await nodeCommand('chromium-install', ['node_modules/playwright/cli.js','install','chromium']);
|
||||
}
|
||||
stage = 'build'; await nodeCommand('build',[npmCli,'run','build']);
|
||||
report.build = builtFiles(run.source); writeNewJson(path.join(run.evidence,'build-inputs.json'),report.build);
|
||||
|
||||
Reference in New Issue
Block a user