-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed wait for Netlify action corrected Netlify deploy urls corrected sitename corrected sitename
- Loading branch information
1 parent
de87eb5
commit 3873153
Showing
1 changed file
with
31 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Lighthouse CI | ||
on: pull_request | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Install and Build | ||
run: | | ||
yarn install | ||
yarn build | ||
- name: Wait for the Netlify Preview | ||
uses: jakepartusch/wait-for-netlify-action@v1 | ||
id: netlify | ||
with: | ||
site_name: 'docusaurus-2' | ||
- name: Audit URLs using Lighthouse | ||
uses: treosh/lighthouse-ci-action@v3 | ||
with: | ||
urls: | | ||
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/classic/ | ||
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/bootstrap/ | ||
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/blog-only/ | ||
uploadArtifacts: true | ||
env: | ||
PR_NUMBER: ${{ github.event.pull_request.number}} |