-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (44 loc) · 1.43 KB
/
eslint.yml
File metadata and controls
57 lines (44 loc) · 1.43 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
49
50
51
52
53
54
55
56
57
on:
push:
branches: ['dev']
pull_request:
types: [opened, synchronize, reopened]
branches:
- dev
jobs:
eslint:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'pnpm'
- name: Generate Build Info
run: bash create_build_info.sh
working-directory: frontend
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure
env:
SKIP: eslint,prettier
- name: Prepare Quasar
run: pnpm exec quasar prepare
working-directory: frontend
- name: Type Check
run: pnpm run type-check
- name: Lint Check
run: pnpm run lint:check
- name: Run Prettier Check
run: pnpm run prettier:check