-
-
Notifications
You must be signed in to change notification settings - Fork 87
37 lines (30 loc) · 757 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
37
name: Code Check
on:
push:
branches:
- main
pull_request: {}
concurrency:
group: ${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: ⬣ ESLint, ʦ TypeScript, and 💅 Prettier
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📥 Download deps
uses: u0reo/npm-install@fix/restore-failure
with:
useRollingCache: true
- name: 🔬 Lint
run: yarn lint:strict
- name: 🔎 Type check
run: yarn typecheck
- name: 💅 Prettier check
run: yarn format:check