Skip to content

[pull] master from showdownjs:master #20

[pull] master from showdownjs:master

[pull] master from showdownjs:master #20

Workflow file for this run

name: BrowserStack Smoke
# Real-device smoke run via browserstack-node-sdk. Runs on PRs and on merges/commits to
# master; the fuller per-engine coverage on every push is the Vitest+Playwright job
# (browser.yml). Also available on manual dispatch.
on:
push:
branches: [ master ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:
jobs:
browserstack:
name: 'BrowserStack smoke (@playwright/test)'
runs-on: ubuntu-latest
# Skip on fork PRs: GitHub withholds secrets from forks, so the BrowserStack creds
# would be missing. Same-repo PRs, pushes, and manual dispatch still run.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- name: Build dist (smoke suite injects the UMD bundle)
run: npm run build
- name: Run smoke suite on BrowserStack
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESSKEY }}
run: npm run test:browserstack