Repository navigation
60 lines (56 loc) · 2.02 KB
/
Copy pathbrowserstack.yml
File metadata and controls
60 lines (56 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Browser compatibility
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: browserstack-${{ github.ref }}
cancel-in-progress: true
jobs:
compatibility:
name: Current and previous browsers
runs-on: ubuntu-latest
timeout-minutes: 45
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
BUILD_NUMBER: ${{ github.run_number }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: pnpm/action-setup@f520eceda224fe1a4aed5a2a27a194379a409996 # v6
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 22.22.0
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Validate BrowserStack configuration
run: pnpm test:browserstack-config
- run: pnpm build
- name: Run Chromium and real-device matrix
id: sdk_matrix
run: pnpm exec browserstack-node-sdk playwright test
- name: Upload Chromium and real-device evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: browserstack-playwright-${{ github.sha }}
path: |
playwright-report
test-results
if-no-files-found: warn
retention-days: 30
- name: Run branded Safari and Firefox matrix
if: steps.sdk_matrix.outcome == 'success'
run: pnpm exec playwright test --config playwright.safari.config.ts
- name: Upload branded desktop evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: browserstack-branded-desktop-${{ github.sha }}
path: |
playwright-report
test-results
if-no-files-found: warn
retention-days: 30
- if: always()
run: pnpm test:security