-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (33 loc) · 867 Bytes
/
code_quality.yml
File metadata and controls
42 lines (33 loc) · 867 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
39
40
41
42
name: Code Quality Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checks:
name: 🔍 Code Quality Checks
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout code
uses: actions/checkout@v3
- name: 🔧 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: 📦 Install dependencies
run: yarn install --immutable
- name: 🔄 Find circular dependencies
working-directory: packages/react-native-sortables
run: yarn circular-dependency-check
- name: 🔎 Run typecheck
run: yarn typecheck
- name: 🧹 Run lint
run: yarn lint
- name: 🎨 Run Prettier check
run: yarn format:check
- name: 🧪 Run tests
run: yarn test