Skip to content

Commit 7ab184c

Browse files
chore: replace BrowserStack with Cypress cross-browser matrix
- Remove BrowserStack workflow and config - Add Cypress cross-browser matrix running Chrome, Edge, and Firefox on windows-latest - Upgrade Cypress from 13.x to 14.x to fix Firefox CDP support
1 parent 6a94678 commit 7ab184c

File tree

4 files changed

+67
-91
lines changed

4 files changed

+67
-91
lines changed

.github/workflows/browserstack.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Cross-Browser Tests
2+
3+
on:
4+
merge_group:
5+
workflow_dispatch:
6+
pull_request:
7+
types:
8+
- opened
9+
- synchronize
10+
push:
11+
branches:
12+
- main
13+
14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
20+
21+
env:
22+
NODE_VERSION: 22
23+
24+
jobs:
25+
26+
cross-browser:
27+
28+
name: ${{ matrix.browser }}
29+
runs-on: ${{ matrix.os }}
30+
timeout-minutes: 25
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
os: [windows-latest]
36+
browser: [chrome, edge, firefox]
37+
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v6
41+
with:
42+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
43+
44+
- name: Build package
45+
uses: ./.github/actions/build
46+
with:
47+
node: ${{ env.NODE_VERSION }}
48+
49+
- name: Run cross-browser tests
50+
uses: cypress-io/github-action@v6
51+
with:
52+
browser: ${{ matrix.browser }}
53+
start: npm start
54+
wait-on: 'http://127.0.0.1:3000'
55+
spec: cypress/e2e/smoke-bs.cy.ts
56+
config-file: cypress-bs.config.js
57+
install-command: npx cypress install
58+
59+
- name: Upload Cypress screenshots
60+
if: failure()
61+
uses: actions/upload-artifact@v7
62+
with:
63+
name: cypress-screenshots-${{ matrix.browser }}-${{ github.run_id }}
64+
path: cypress/screenshots
65+
retention-days: 30
66+
if-no-files-found: ignore

browserstack.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
"@types/react-dom": "19.2.3",
6363
"@typescript-eslint/eslint-plugin": "^8.36.0",
6464
"@typescript-eslint/parser": "^8.36.0",
65-
"browserstack-cypress-cli": "^1.19.1",
66-
"cypress": "^13.1.0",
65+
"cypress": "^14.5.4",
6766
"eslint": "^8.28.0",
6867
"eslint-plugin-react": "^7.31.11",
6968
"eslint-plugin-react-hooks": "^4.6.0",

0 commit comments

Comments
 (0)