mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +00:00
Revert "CI: do not test Webkit on Linux"
This reverts commit 4762d2c7623eccaf297a2bf9f4c7aa957aa32c6f.
This commit is contained in:
parent
448418a6f5
commit
d155da23dd
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -106,7 +106,6 @@ jobs:
|
||||
npx playwright install --with-deps firefox
|
||||
|
||||
- name: Install WebKit # caching not possible, external shared libraries required
|
||||
if: ${{ matrix.runner == 'macos-latest' }} # do not install on ubuntu, since the X25519 WebCrypto implementation has issues
|
||||
run: npx playwright install --with-deps webkit
|
||||
|
||||
- name: Run browser tests
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import { existsSync } from 'fs';
|
||||
import { playwrightLauncher, playwright } from '@web/test-runner-playwright';
|
||||
import { playwrightLauncher } from '@web/test-runner-playwright';
|
||||
|
||||
const sharedPlaywrightCIOptions = {
|
||||
// createBrowserContext: ({ browser }) => browser.newContext({ ignoreHTTPSErrors: true }),
|
||||
headless: true
|
||||
};
|
||||
|
||||
export default {
|
||||
nodeResolve: true, // to resolve npm module imports in `unittests.html`
|
||||
files: './test/unittests.html',
|
||||
@ -29,13 +29,11 @@ export default {
|
||||
...sharedPlaywrightCIOptions,
|
||||
product: 'firefox'
|
||||
}),
|
||||
// try setting up webkit, but ignore if not available
|
||||
// (e.g. on ubuntu, where we don't want to test webkit as the WebCrypto X25519 implementation has issues)
|
||||
existsSync(playwright.webkit.executablePath()) && playwrightLauncher({
|
||||
playwrightLauncher({
|
||||
...sharedPlaywrightCIOptions,
|
||||
product: 'webkit'
|
||||
})
|
||||
].filter(Boolean)
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user