Benchmark #1659
This file contains hidden or 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
| name: Benchmark | |
| on: deployment_status | |
| jobs: | |
| lighthouse: | |
| # only runs this job on successful deploy | |
| if: github.event.deployment_status.state == 'success' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v5 | |
| - name: setup | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Lighthouse Check | |
| run: yarn lhci autorun | |
| env: | |
| PREVIEW_URL: ${{ github.event.deployment_status.target_url }} | |
| LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |