fix: update year (#48) #319
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: CI | |
on: [push] | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "pnpm" | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Prettier Lint | |
run: pnpx prettier . --check --plugin=prettier-plugin-tailwindcss --plugin=prettier-plugin-astro | |
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 | |
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | |
run: git fetch --depth=1 origin +refs/heads/${{github.base_ref}}:refs/remotes/origin/${{github.base_ref}} | |
- 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 }} |