-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add lighthouse smoketests (windows) to CI (#265)
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: smoke | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: # run on all PRs, not just PRs to a particular branch | ||
|
||
jobs: | ||
# Only run smoke tests for windows against stable chrome. | ||
lh-smoke-windows: | ||
strategy: | ||
matrix: | ||
smoke-test-shard: [1, 2] | ||
# e.g. if set 1 fails, continue with set 2 anyway | ||
fail-fast: false | ||
runs-on: windows-latest | ||
name: Windows smoke ${{ matrix.smoke-test-shard }}/2 | ||
|
||
steps: | ||
- name: git clone | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
|
||
# chrome-launcher | ||
# This'll add lighthouse AND install chrome-launcher's deps | ||
- run: yarn add --frozen-lockfile --network-timeout 1000000 -D https://github.com/GoogleChrome/lighthouse.git#master | ||
- run: yarn build | ||
|
||
# lighthouse | ||
- run: yarn --cwd node_modules/lighthouse/ install --frozen-lockfile --network-timeout 1000000 | ||
- run: yarn reset-link | ||
- run: yarn --cwd node_modules/lighthouse/ build-report | ||
|
||
- name: Run smoke tests | ||
# Windows bots are slow, so only run enough tests to verify matching behavior. | ||
run: yarn --cwd node_modules/lighthouse/ smoke --debug -j=2 --retries=5 --shard=${{ matrix.smoke-test-shard }}/2 dbw oopif offline lantern metrics | ||
|
||
- name: Upload failures | ||
if: failure() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Smokehouse (windows) | ||
path: node_modules/lighthouse/.tmp/smokehouse-ci-failures/ |
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