Skip to content

Commit

Permalink
added lighthouse CI
Browse files Browse the repository at this point in the history
removed wait for Netlify action

corrected Netlify deploy urls

corrected sitename

corrected sitename
  • Loading branch information
sarthakkundra committed Nov 17, 2020
1 parent de87eb5 commit 3873153
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lighthouseCI.yml
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}}

0 comments on commit 3873153

Please sign in to comment.