refactor(surveys): Use Preact instead of vanilla JS #1877
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- name: Check out posthog-js | |
uses: actions/checkout@v2 | |
- name: Set up Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Serve static files | |
run: python -m http.server 8080 & | |
- name: Install node dependencies | |
run: yarn | |
- name: Set up posthog-js | |
run: yarn build-rollup | |
- name: Run ${{ matrix.name }} test | |
run: node scripts/run-testcafe-with-retries.mjs --browser "browserstack:${{ matrix.browserstack }}" --attempts 3 |