-
Notifications
You must be signed in to change notification settings - Fork 5k
63 lines (53 loc) · 1.61 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Benchmarks'
on:
push:
branches: self-hosted-temp
repository_dispatch:
types: [start-example-workflow]
workflow_dispatch:
inputs:
name:
description: 'name'
home:
description: 'home'
jobs:
test:
name: Benchmark
runs-on: ubuntu-latest
container: cimg/node:20.18-browsers
# runs-on: [self-hosted, Linux, X64]
steps:
# - name: Docker
# uses: docker://cimg/node:20.18-browsers
- name: Checkout repository
uses: actions/checkout@v4
- run: sudo corepack enable
shell: bash
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
shell: bash
# - run: yarn build:test
- run: yarn webpack --test
- name: Install prereqs
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo apt-get -y install xorg xvfb gtk2-engines-pixbuf
sudo apt-get -y install dbus-x11 xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99
# - name: Debugging with tmate
# uses: ./.github/actions/actions-tmate
- name: Run the benchmark
run: yarn benchmark:chrome --out test-artifacts/chrome/benchmark/pageload.json --retries 2
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: pageload
path: test-artifacts/chrome/benchmark/pageload.json
retention-days: 5