-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.04 KB
/
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
name: Linting Checks
on:
pull_request:
branches: ["*"]
push:
branches: [master]
workflow_dispatch:
jobs:
lint-frontend:
runs-on: ubuntu-latest
name: Lint Frontend
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Frontend format check
working-directory: frontend
run: npm ci && npm run lint
lint-backend:
runs-on: ubuntu-latest
name: Lint Backend
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: Install dependencies
working-directory: backend
run: bun install --dev
- name: Prettier format check
working-directory: backend
run: bun run lint