File tree Expand file tree Collapse file tree 4 files changed +67
-91
lines changed
Expand file tree Collapse file tree 4 files changed +67
-91
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments