12.0.0 #128
Workflow file for this run
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: Run Lighthouse plugin on Linux | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- name: Install sitespeed.io | |
run: | | |
npm install sitespeed.io -g | |
cd ../plugin-lighthouse | |
npm install | |
- name: Lint | |
run: npm run lint | |
- name: Show sitespeed.io version | |
run: sitespeed.io --version | |
- name: Run tests using Lighthouse plugin | |
run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ | |
- name: Run tests using Lighthouse plugin as mobile | |
run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile | |
- name: Run tests with configuration file | |
run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.config ./test/config.js | |
- name: Run tests with flag file | |
run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.flags ./test/flags.json | |
- name: Test global install | |
run: | | |
npm install -g | |
sitespeed.io --plugins.add @sitespeed.io/plugin-lighthouse --plugins.remove browsertime https://www.sitespeed.io/ |