Run CRUX tests standalone (#3580)

* Run CRUX tests standalone and use a new test page.
This commit is contained in:
Peter Hedenskog 2022-02-24 10:18:58 +01:00 committed by GitHub
parent ed6a87bb8f
commit ff1dc5aceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 4 deletions

22
.github/workflows/crux-test.yml vendored Normal file
View File

@ -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

View File

@ -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