Skip to content

Lighthouse CI

Lighthouse CI #231

Workflow file for this run

name: Lighthouse CI
on: deployment_status
jobs:
lhci:
if: github.event.deployment_status.state == 'success'
name: Lighthouse CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: run Lighthouse CI
run: |
npm install -g @lhci/[email protected]
lhci autorun --collect.url=${DEPLOY_URL} --collect.url=${DEPLOY_URL}/cv/ --collect.url=${DEPLOY_URL}/blog/2020-02-02-personal-website-2020-tech-stack/ --upload.target=temporary-public-storage || echo "LHCI failed!"
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
DEPLOY_URL: ${{ github.event.deployment_status.target_url }}