Skip to content

Add CI checks: Astro type checking, markdown linting, and pre-commit … #151

Add CI checks: Astro type checking, markdown linting, and pre-commit …

Add CI checks: Astro type checking, markdown linting, and pre-commit … #151

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Astro type check
run: npm run check
- name: Run markdown lint
run: npm run lint:md
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install pre-commit
run: pip install pre-commit
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run pre-commit hooks
run: pre-commit run --all-files