Improve how we compute the power consumption numbers from the Firefox… #1807
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: 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 |