28 lines
697 B
YAML
28 lines
697 B
YAML
name: live
|
|
|
|
on: [deployment_status]
|
|
|
|
jobs:
|
|
lighthouse:
|
|
name: lighthouse
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
if: github.event.deployment_status.state == 'success' && github.event.deployment_status.creator.login == 'deno-deploy[bot]'
|
|
|
|
env:
|
|
URL: ${{ github.event.deployment_status.environment_url }}
|
|
|
|
steps:
|
|
- name: Setup repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Audit URLs using Lighthouse
|
|
uses: treosh/lighthouse-ci-action@v10
|
|
env:
|
|
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
|
|
with:
|
|
temporaryPublicStorage: true
|
|
urls: |
|
|
$URL
|
|
$URL/docs/introduction
|