-
-
Notifications
You must be signed in to change notification settings - Fork 137
48 lines (48 loc) · 1.56 KB
/
browser-dev.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
name: Test Firefox/Chrome dev
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Firefox latest dev edition
uses: browser-actions/setup-firefox@latest
with:
firefox-version: 'latest-devedition'
- name: Install Chrome dev
uses: browser-actions/setup-chrome@latest
with:
chrome-version: dev
- name: Install Browsertime
run: npm ci
- name: Install dependencies
run: |
sudo apt-get install net-tools -y
sudo snap install ffmpeg
sudo snap alias ffmpeg.ffprobe ffprobe
python -m pip install --upgrade --user pip
python -m pip install --upgrade --user setuptools
python -m pip install --user pyssim OpenCV-Python Numpy
python -m pip --version
python -m pip show Pillow
python -m pip show pyssim
python -m pip install virtualenv
sudo modprobe ifb numifbs=1
- name: Browser versions
run: |
chrome --version
firefox --version
- name: Test Chrome dev
run: ./bin/browsertime.js -b chrome -n 1 https://www.sitespeed.io --connectivity.profile cable --connectivity.engine throttle --xvfb --chrome.binaryPath $(which chrome)
- name: Test Firefox dev
run: ./bin/browsertime.js -b firefox -n 1 https://www.sitespeed.io --connectivity.profile cable --connectivity.engine throttle --xvfb