-
Notifications
You must be signed in to change notification settings - Fork 131
53 lines (45 loc) · 1.37 KB
/
testcafe.yml
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
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