Major Refactoring #91
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
name: Lighthouse CI | |
on: [pull_request] | |
jobs: | |
lhci: | |
name: Generate Lighthouse Report | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: NodeJS Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Check dependencies & build | |
run: | | |
yarn install | |
yarn build | |
- name: Run Lighthouse CI | |
id: step_lhci | |
run: yarn dlx @lhci/cli autorun | |
env: | |
LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }} | |
LHCI_USERNAME: ${{ secrets.LHCI_USERNAME }} | |
LHCI_PASSWORD: ${{ secrets.LHCI_PASSWORD }} | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
- name: Post Link to Lighthouse Report | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
comment_tag: lighthouse | |
message: | | |
Check out your Lighthouse Report: https://lighthouse.hybus.app/app/projects/hybus-production/dashboard | |
mode: recreate | |