Skip to content

Commit

Permalink
chore: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Sep 5, 2024
1 parent 27d3f94 commit f86f142
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code Quality

on:
pull_request:
branches: [main]

jobs:
code-quality:
name: Lint, Format, and Type Check
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'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.1.4

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run ESLint
run: pnpm run lint

- name: Check Prettier formatting
run: pnpm run format -- --check

- name: Run TypeScript type checking
run: pnpm run typecheck
1 change: 1 addition & 0 deletions .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit f86f142

Please sign in to comment.