-
Notifications
You must be signed in to change notification settings - Fork 30
50 lines (46 loc) · 1.05 KB
/
code-linting.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Code Linting
on:
# push:
# branches:
# - 'feature/**'
# - 'main'
# - 'production'
pull_request:
branches:
- 'feature/**'
- 'main'
- 'production'
jobs:
# ts-check:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Node.js Setup
# uses: actions/setup-node@v3
# - name: Install Packages
# run: npm ci
# - name: Build Vite & TSC
# run: npm run build
eslint-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node.js Setup
uses: actions/setup-node@v3
- name: Install Packages
run: npm ci
- name: Run Eslint
run: npm run lint
prettier-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node.js Setup
uses: actions/setup-node@v3
- name: Install Packages
run: npm ci
- name: Run Prettier
run: npm run format