Run CRUX tests standalone (#3580)
* Run CRUX tests standalone and use a new test page.
This commit is contained in:
parent
ed6a87bb8f
commit
ff1dc5aceb
|
|
@ -0,0 +1,22 @@
|
|||
name: Test CRUX
|
||||
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: '16.x'
|
||||
- name: Install sitespeed.io
|
||||
run: npm ci
|
||||
- name: Run tests with CruX
|
||||
run: bin/sitespeed.js -b chrome -n 1 --crux.key ${{ secrets.CRUX_KEY }} https://en.wikipedia.org/wiki/Main_Page --plugins.remove browsertime
|
||||
|
||||
|
|
@ -55,7 +55,4 @@ jobs:
|
|||
- name: Run test with Graphite
|
||||
run: bin/sitespeed.js https://www.sitespeed.io/ -n 1 --graphite.host 127.0.0.1 --xvfb
|
||||
- name: Run test without a CLI
|
||||
run: xvfb-run node test/runWithoutCli.js
|
||||
- name: Run tests with CruX
|
||||
run: bin/sitespeed.js -b chrome -n 1 --crux.key ${{ secrets.CRUX_KEY }} --xvfb https://www.sitespeed.io
|
||||
|
||||
run: xvfb-run node test/runWithoutCli.js
|
||||
Loading…
Reference in New Issue