-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4805 from guardian/revert-4773-jtl-surface-lighth…
…ouse
- Loading branch information
Showing
4 changed files
with
23 additions
and
251 deletions.
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 |
---|---|---|
@@ -1,41 +1,25 @@ | ||
name: DCR Run Lighthouse CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "apps-rendering/**" | ||
pull_request: | ||
# If/when we compare results to `main`, we should also run on 'reopened' | ||
types: [opened, synchronize] | ||
|
||
push: | ||
paths-ignore: | ||
- "apps-rendering/**" | ||
jobs: | ||
lhci: | ||
name: DCR Lighthouse | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: guardian/actions-setup-node@main | ||
# Make sure we install dependencies in the root directory | ||
- uses: bahmutov/npm-install@v1 | ||
- run: make build | ||
working-directory: dotcom-rendering | ||
- name: Install and run Lighthouse CI | ||
working-directory: dotcom-rendering | ||
env: | ||
LHCI_GITHUB_TOKEN: ${{ secrets.LHCI_GITHUB_TOKEN }} | ||
run: | | ||
npm install -g [email protected] @lhci/[email protected] | ||
lhci autorun | ||
- name: Setup deno | ||
uses: denolib/setup-deno@v2 | ||
with: | ||
deno-version: v1.21.0 | ||
|
||
- name: Surface Lighthouse Results | ||
run: deno run --no-check --allow-net=api.github.com --allow-env="GITHUB_TOKEN","GITHUB_EVENT_PATH" --allow-read scripts/deno/surface-lighthouse-results.ts | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
lhci: | ||
name: DCR Lighthouse | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: guardian/actions-setup-node@main | ||
# Make sure we install dependencies in the root directory | ||
- uses: bahmutov/npm-install@v1 | ||
- run: make build | ||
working-directory: dotcom-rendering | ||
- name: Install and run Lighthouse CI | ||
working-directory: dotcom-rendering | ||
env: | ||
LHCI_GITHUB_TOKEN: ${{ secrets.LHCI_GITHUB_TOKEN }} | ||
run: | | ||
npm install -g [email protected] @lhci/[email protected] | ||
lhci autorun |
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 |
---|---|---|
|
@@ -44,6 +44,3 @@ coverage | |
|
||
# Architecture Diagram | ||
webArchitecture.svg | ||
|
||
# lighthouse results from local build | ||
.lighthouseci/ |
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
This file was deleted.
Oops, something went wrong.