Skip to content

Run astro sync before typecheck in CI to generate astro:content types #29

Run astro sync before typecheck in CI to generate astro:content types

Run astro sync before typecheck in CI to generate astro:content types #29

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm install
- name: Astro sync
run: cd website && pnpm astro sync
- name: TypeScript type check
run: pnpm typecheck
- name: ESLint
run: pnpm lint
- name: Install shfmt
run: |
curl -sSL "https://github.com/mvdan/sh/releases/download/v3.13.1/shfmt_v3.13.1_linux_amd64" -o /usr/local/bin/shfmt
chmod +x /usr/local/bin/shfmt
- name: ShellCheck
run: pnpm lint:sh