Skip to content

Add linting, formatting, and enforce in CI #2

Add linting, formatting, and enforce in CI

Add linting, formatting, and enforce in CI #2

Workflow file for this run

# Runs lint and checks prettier formatting
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 22
- run: npm ci
- run: npm run lint
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 22
- run: npm ci
- run: npm run format:check
tsc:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 22
- run: npm ci
- run: npm run ts:check