jquery/.github
Michał Gołębiowski-Owczarek b02a257f98
Build: Run GitHub Action browser tests on Playwright WebKit
So far, we've been running browser tests on GitHub Actions in Chrome
and Firefox. Regular Safari is not available in GitHub Actions but
Playwright WebKit comes close to a dev version of Safari.

With this change, our GitHub CI & local test runs will invoke tests on
all actively developed browser engines on all PRs.

Also, our GitHub Actions browser tests are now running on Node.js 18.

Detection of the Playwright WebKit browser in support unit tests is done
by checking if the `test_browser` query parameter is set to `"Playwright"`;
this is a `karma-webkit-launcher` feature. Detecting that browser via
user agent as we normally do is hard as the UA on Linux is very similar
to a real Safari one but it actually uses a newer version of the engine.

In addition, we now allow to pass custom browsers when one needs it;
e.g., to run the tests in all three engines on Linux/macOS, run:
```
grunt && BROWSERS=ChromeHeadless,FirefoxHeadless,WebkitHeadless grunt karma:main
```

Closes gh-5190
2023-01-23 23:49:44 +01:00
..
workflows Build: Run GitHub Action browser tests on Playwright WebKit 2023-01-23 23:49:44 +01:00
dependabot.yml Build: Add dependabot.yml config (GitHub Actions) 2022-06-27 18:33:41 +02:00
ISSUE_TEMPLATE.md Docs: Update Frequently Reported Issues in the GitHub issue template 2020-06-08 20:25:11 +02:00
lock.yml Misc: Add config for lockbot 2018-06-17 15:49:27 -04:00
PULL_REQUEST_TEMPLATE.md Docs: Remove the CLA checkbox in the pull request template 2021-10-18 18:09:04 +02:00