-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 905 Bytes
/
lint.yml
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
name: Lint
on:
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out Repo
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Set up Node.JS
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Lint Project
run: pnpm lint
- name: Check Code Formatting
run: pnpm prettier:check
# If you have a monorepo, you can add the following steps to the job:
- name: Check Dependency Version Consistency
run: pnpm check-dependency-version-consistency .
- name: Check for Duplicated Dependencies
run: pnpm dedupe --check