Skip to content

Commit e57b016

Browse files
committed
Adding missing yml file
1 parent 7d3e3a0 commit e57b016

File tree

1 file changed

+17
-25
lines changed

1 file changed

+17
-25
lines changed

.github/workflows/linux.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Lighthouse plugin on Linux
1+
name: Run plugin on Linux
22
on:
33
push:
44
branches:
@@ -15,35 +15,27 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: '20.x'
18+
- name: Install latest Chrome
19+
run: |
20+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
21+
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
22+
sudo apt-get update
23+
sudo apt-get --only-upgrade install google-chrome-stable
24+
google-chrome --version
25+
- name: Browser versions
26+
run: |
27+
google-chrome --version
1828
- name: Install sitespeed.io
1929
run: |
2030
npm install sitespeed.io -g
21-
npm install @sitespeed.io/plugin-lighthouse -g
22-
cd ../webperf-sitespeedio-plugin
31+
cd ../plugin-javascript
2332
npm install
33+
- name: Start local HTTP server
34+
run: (npm run start-server&)
2435
- name: Lint
2536
run: npm run lint
2637
- name: Show sitespeed.io version
2738
run: sitespeed.io --version
28-
- name: Run tests using Lighthouse plugin
29-
run: sitespeed.io --plugins.add ./lib/index.js --plugins.remove browsertime https://www.sitespeed.io/
30-
- name: Run tests using Lighthouse plugin as mobile
31-
run: sitespeed.io --plugins.add ./lib/index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile
32-
- name: Run tests to illustrate maxLoadTime
33-
run: sitespeed.io --maxLoadTime 30000 -b firefox --firefox.includeResponseBodies all --firefox.preference privacy.trackingprotection.enabled:false --firefox.preference privacy.donottrackheader.enabled:false --firefox.preference browser.safebrowsing.malware.enabled:false --firefox.preference browser.safebrowsing.phishing.enabled:false --firefox.preference security.tls.version.min:1 --firefox.preference security.tls.version.max:1 --pageCompleteCheckNetworkIdle true --browsertime.screenshot false --screenshot false --screenshotLCP false --browsertime.screenshotLCP false --videoParams.createFilmstrip false --visualMetrics false --visualMetricsPerceptual false --visualMetricsContentful false --browsertime.headless true --silent true --utc true -n 1 https://webperf.se
34-
35-
36-
# - name: Run tests using Lighthouse plugin as mobile
37-
# run: sitespeed.io --plugins.remove assets --plugins.remove budget --plugins.remove coach --plugins.remove pagexray --plugins.remove thirdparty --plugins.remove domains --maxLoadTime 30000 --shm-size=1g -b firefox --firefox.includeResponseBodies all --firefox.preference privacy.trackingprotection.enabled:false --firefox.preference privacy.donottrackheader.enabled:false --firefox.preference browser.safebrowsing.malware.enabled:false --firefox.preference browser.safebrowsing.phishing.enabled:false --firefox.preference security.tls.version.min:1 --firefox.preference security.tls.version.max:1 --pageCompleteCheckNetworkIdle true --plugins.remove screenshot --plugins.remove html --plugins.remove metrics --browsertime.screenshot false --screenshot false --screenshotLCP false --browsertime.screenshotLCP false --videoParams.createFilmstrip false --visualMetrics false --visualMetricsPerceptual false --visualMetricsContentful false --browsertime.headless true --silent true --utc true -n 1
38-
39-
40-
41-
42-
# - name: Run tests with configuration file
43-
# run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.config ./test/config.js
44-
# - name: Run tests with flag file
45-
# run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.flags ./test/flags.json
46-
# - name: Test global install
47-
# run: |
48-
# npm install -g
49-
# sitespeed.io --plugins.add @sitespeed.io/plugin-lighthouse --plugins.remove browsertime https://www.sitespeed.io/
39+
- name: Run tests using plugin
40+
run: sitespeed.io --plugins.add ./lib/index.js --browsertime.chrome.includeResponseBodies all --xvfb -n 1 http://127.0.0.1:3000/
41+

0 commit comments

Comments
 (0)