Skip to content

Commit a47e59f

Browse files
chore: replace BrowserStack with Cypress cross-browser matrix
1 parent dd13e50 commit a47e59f

File tree

5 files changed

+166
-2506
lines changed

5 files changed

+166
-2506
lines changed

.github/workflows/browserstack.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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: windows-latest
30+
timeout-minutes: 25
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
browser: [chrome, firefox, edge]
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v6
40+
with:
41+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
42+
43+
- name: Build package
44+
uses: ./.github/actions/build
45+
with:
46+
node: ${{ env.NODE_VERSION }}
47+
48+
- name: Run cross-browser tests
49+
uses: cypress-io/github-action@v6
50+
with:
51+
browser: ${{ matrix.browser }}
52+
start: npm start
53+
wait-on: 'http://127.0.0.1:3000'
54+
spec: cypress/e2e/smoke-bs.cy.ts
55+
config-file: cypress-bs.config.js
56+
install-command: npx cypress install
57+
58+
- name: Upload Cypress screenshots
59+
if: failure()
60+
uses: actions/upload-artifact@v7
61+
with:
62+
name: cypress-screenshots-${{ matrix.browser }}-${{ github.run_id }}
63+
path: cypress/screenshots
64+
retention-days: 30
65+
if-no-files-found: ignore

browserstack.json

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

0 commit comments

Comments
 (0)