-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 961 Bytes
/
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
name: Linting Checks
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
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 Deno
uses: denoland/setup-deno@v1
with:
deno-version: 'v2.x'
- name: Deno format check
working-directory: backend
run: deno fmt --check