Skip to content

feat: Allow changing persistence #2045

feat: Allow changing persistence

feat: Allow changing persistence #2045

Workflow file for this run

name: TestCafe
on: [pull_request]
env:
BROWSERSTACK_ACCESS_KEY: "${{ secrets.BROWSERSTACK_ACCESS_KEY }}"
BROWSERSTACK_USERNAME: "${{ secrets.BROWSERSTACK_USERNAME }}"
POSTHOG_PROJECT_KEY: "${{ secrets.POSTHOG_PROJECT_KEY }}"
POSTHOG_API_KEY: "${{ secrets.POSTHOG_API_KEY }}"
BROWSERSTACK_DEBUG: 'true'
BROWSERSTACK_NETWORK_LOGS: 'true'
BROWSERSTACK_CONSOLE: 'info'
BROWSERSTACK_FORCE_PROXY: 'true'
BROWSERSTACK_USE_AUTOMATE: 'true'
jobs:
browsers:
name: Test on ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
browserstack:
- chrome
- ie
- safari
include:
- browserstack: chrome
name: Chrome
- browserstack: ie
name: IE11
- browserstack: safari
name: Safari
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.x.x
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
- name: Serve static files
run: python -m http.server 8080 &
- name: Install node dependencies
run: pnpm install
- name: Set up posthog-js
run: pnpm build-rollup
- name: Run ${{ matrix.name }} test
run: node scripts/run-testcafe-with-retries.mjs --browser "browserstack:${{ matrix.browserstack }}" --attempts 3