-
Notifications
You must be signed in to change notification settings - Fork 96
45 lines (40 loc) · 1.16 KB
/
benchmark.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
name: benchmark
on:
push:
branches: [ benchmarking ]
pull_request:
branches: [ benchmarking ]
env:
FORCE_COLOR: 2
jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run all
- name: Unzip canned data files
uses: montudor/action-zip@v1
with:
args: unzip -qq test/benchmark/tokyo_canned_data.zip -d test/benchmark
- name: Install Playwright dependencies
run:
npx playwright install
- name: Start Server
run: node scripts/server.js &
- name: Run Chromium Benchmarks
run:
npx playwright test --config=test/benchmark/playwright.config.mjs --project chromium
- name: Run Firefox Benchmarks
run:
npx playwright test --config=test/benchmark/playwright.config.mjs --project firefox
- name: Run Webkit Benchmarks
run:
npx playwright test --config=test/benchmark/playwright.config.mjs --project webkit