feat(rpc): keep non-rpc linux bots for now (#3381)

This commit is contained in:
Dmitry Gozman 2020-08-10 20:49:53 -07:00 committed by GitHub
parent 823ef86470
commit 8bb6d73b44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -198,7 +198,7 @@ jobs:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
transport: [wire, object]
transport: [wire, none]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

View file

@ -21,4 +21,9 @@ const path = require('path');
const playwright = new Playwright(__dirname, require(path.join(__dirname, 'browsers.json'))['browsers']);
playwright.electron = new Electron();
module.exports = setupInProcess(playwright);
if (process.env.PWCHANNEL === 'none') {
playwright._toImpl = x => x;
module.exports = playwright;
} else {
module.exports = setupInProcess(playwright);
}

View file

@ -29,7 +29,7 @@ testOptions.CHROMIUM = browserName === 'chromium';
testOptions.FFOX = browserName === 'firefox';
testOptions.WEBKIT = browserName === 'webkit';
testOptions.USES_HOOKS = process.env.PWCHANNEL === 'wire';
testOptions.CHANNEL = true;
testOptions.CHANNEL = process.env.PWCHANNEL !== 'none';
testOptions.HEADLESS = !!valueFromEnv('HEADLESS', true);
testOptions.ASSETS_DIR = path.join(__dirname, '..', 'assets');
testOptions.GOLDEN_DIR = path.join(__dirname, '..', 'golden-' + browserName);