-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.02 KB
/
Copy pathcode-standards-checks.yml
File metadata and controls
48 lines (38 loc) · 1.02 KB
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
name: Code Standards & Quality
on:
workflow_call:
inputs:
node-version:
type: string
default: "20"
run-build:
type: boolean
default: false
jobs:
build:
name: Check Code standards & Quality
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: 🛫 Checkout code
uses: actions/checkout@v4
- name: "📦 Install pnpm"
uses: pnpm/action-setup@v4
with:
version: 10.11.1
- name: 🔧 Setup Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: "pnpm"
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
- name: 🔎 Lint code
run: pnpm lint
- name: 📝 Checking code format
run: pnpm format:check
- name: 💪 Type Checking
run: pnpm type-check
- name: 🚀 Build the project
if: ${{ inputs.run-build }}
run: pnpm run build