diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-05 14:44:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 14:44:01 -0500 |
commit | 95a4c94b8131b737d8f160c582a4acfe2b65e0f8 (patch) | |
tree | 12f54464d114706be83a5d2742d95cc5ee966c2a /.github/workflows/browserstack.yml | |
parent | 2b97b6bbcfc67c234b86d41451aac7cdd778e855 (diff) | |
download | jquery-95a4c94b8131b737d8f160c582a4acfe2b65e0f8.tar.gz jquery-95a4c94b8131b737d8f160c582a4acfe2b65e0f8.zip |
Tests: reuse browser workers in BrowserStack tests (#5428)
- reuse BrowserStack workers.
- add support for "latest" and "latest-1" in browser version filters
- add support for specifying non-final browser versions, such as beta versions
- more accurate eslint for files in test/runner
- switched `--no-isolate` command flag to `--isolate`. Now that browser instances are shared, it made more sense to me to default to no isolation unless specified. This turned out to be cleaner because the only place we isolate is in browserstack.yml.
- fixed an issue with retries where it wasn't always waiting for the retried test run
- enable strict mode in test yargs command
Diffstat (limited to '.github/workflows/browserstack.yml')
-rw-r--r-- | .github/workflows/browserstack.yml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml index 7350ca36d..b3f9a5e98 100644 --- a/.github/workflows/browserstack.yml +++ b/.github/workflows/browserstack.yml @@ -16,24 +16,25 @@ jobs: name: ${{ matrix.BROWSER }} concurrency: group: ${{ github.workflow }} ${{ matrix.BROWSER }} + timeout-minutes: 30 strategy: fail-fast: false matrix: BROWSER: - 'IE_11' - - 'Safari_17' - - 'Safari_16' - - 'Chrome_120' - - 'Chrome_119' - - 'Edge_120' - - 'Edge_119' - - 'Firefox_121' - - 'Firefox_120' + - 'Safari_latest' + - 'Safari_latest-1' + - 'Chrome_latest' + - 'Chrome_latest-1' + - 'Opera_latest' + - 'Edge_latest' + - 'Edge_latest-1' + - 'Firefox_latest' + - 'Firefox_latest-1' - 'Firefox_115' - '__iOS_17' - '__iOS_16' - '__iOS_15' - - 'Opera_106' steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -61,4 +62,4 @@ jobs: run: npm run pretest - name: Run tests - run: npm run test:unit -- -v --browserstack "${{ matrix.BROWSER }}" --retries 3 + run: npm run test:unit -- -v --browserstack "${{ matrix.BROWSER }}" --run-id ${{ github.run_id }} --isolate --retries 3 |