barrettruth.com/.github/workflows/ci.yaml
2025-12-30 19:46:13 -06:00

36 lines
614 B
YAML

name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Prettier check
run: pnpm prettier --check .
- name: Astro check
run: pnpm astro check
- name: Build
run: pnpm build