28 lines
569 B
1
name: Lint commits
2
on: [push, pull_request]
3
4
permissions:
5
checks: write
6
7
jobs:
8
lint:
9
name: Lint commits
10
runs-on: ubuntu-latest
11
steps:
12
- uses: actions/checkout@v3
13
14
- uses: pnpm/action-setup@v2
15
with:
16
version: 9
17
run_install: false
18
- uses: actions/setup-node@v3
19
with:
20
node-version: 18
21
cache: pnpm
22
23
- name: Install dependencies
24
run: pnpm install --frozen-lockfile
25
- name: Run tsc
26
run: pnpm run typecheck
27
- name: Run ESLint
28
run: pnpm run lint
29