Prepare release - 2026.8.0 #51
Workflow file for this run
This file contains hidden or 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: Run plugin on Linux | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20.x' | |
| - name: Install latest Chrome | |
| run: | | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
| sudo apt-get update | |
| sudo apt-get --only-upgrade install google-chrome-stable | |
| google-chrome --version | |
| - name: Browser versions | |
| run: | | |
| google-chrome --version | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install sitespeed.io | |
| run: npm install sitespeed.io -g | |
| - name: Lint | |
| run: npm run lint | |
| - name: Run unit tests (network-free) | |
| run: npm test | |
| - name: Start local HTTP server | |
| run: (npm run start-server&) | |
| - name: Show sitespeed.io version | |
| run: sitespeed.io --version | |
| - name: Run tests using plugin | |
| # test/data/sitemap.xml is served as XML, so Chrome renders it with its | |
| # built-in XML viewer instead of a normal page: there's no LCP paint | |
| # candidate, which crashes browsertime's LCP screenshot/highlight | |
| # script, and no real DOM, which crashes coach-core's iframe-sandbox | |
| # privacy check. Both are non-fatal to the actual run (the report still | |
| # gets written) but sitespeed.io still exits non-zero, which fails this | |
| # step. Skip both checks - neither is relevant to this plugin's output. | |
| run: sitespeed.io --plugins.add ./lib/index.js --plugins.remove coach --browsertime.chrome.includeResponseBodies all --browsertime.screenshot false --browsertime.screenshotLCP false --xvfb -n 1 http://127.0.0.1:3000/ |