Files
my-vault/.github/workflows/lint.yml
T

37 lines
728 B
YAML

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 .