feat: add GitHub Action for lint checks on PRs

This commit is contained in:
Noah Brier
2025-09-17 15:38:09 -04:00
parent 3909ab476c
commit ccf37a114b
+36
View File
@@ -0,0 +1,36 @@
name: Lint
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint:
name: Run Lint Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint
run: pnpm eslint --config .config/eslint.config.js .
- name: Run Prettier Check
run: pnpm prettier --config .config/.prettierrc.js --check .