Skip to content

ci: fix ancestor hash #12

ci: fix ancestor hash

ci: fix ancestor hash #12

Workflow file for this run

name: CI
on: [push]
jobs:
lighthouseci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 20
- name: Fetch base_ref HEAD to use it as Ancestor hash in LHCI
run: git fetch --depth=1 origin +refs/heads/$:refs/remotes/origin/$
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
- name: Install and Build
run: |
pnpm install
pnpm run build
- name: Run Lighthouse CI
run: |
pnpm install -g @lhci/cli@0.12.x
lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}