forked from assistant-ui/assistant-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 842 Bytes
/
code-quality.yaml
File metadata and controls
38 lines (31 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Code Quality
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: ESLint & Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint
run: pnpm eslint
continue-on-error: true # Don't fail the workflow if ESLint has errors
# TODO: fix all eslint errors
- name: Run Prettier
run: pnpm prettier
# This will fail the workflow if Prettier has warnings