Skip to content

Commit 0b0638a

Browse files
authored
add ci lint (#956)
2 parents 80567ca + 012381e commit 0b0638a

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.github/workflows/ci-linting.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: ci-linting
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
- master
10+
pull_request:
11+
branches:
12+
- main
13+
- master
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 18
26+
cache: 'yarn'
27+
28+
- name: Install Yarn
29+
run: corepack enable
30+
31+
- name: Install dependencies
32+
run: yarn install --immutable
33+
34+
- name: Lint backend packages
35+
run: |
36+
echo "Linting @vue-skuilder/common..."
37+
yarn workspace @vue-skuilder/common lint:check
38+
39+
echo "Linting @vue-skuilder/db..."
40+
yarn workspace @vue-skuilder/db lint:check
41+
42+
echo "Linting @vue-skuilder/express..."
43+
yarn workspace @vue-skuilder/express lint:check
44+
45+
echo "Linting @vue-skuilder/cli..."
46+
yarn workspace @vue-skuilder/cli lint:check
47+
48+
echo "Linting @vue-skuilder/e2e-db..."
49+
yarn workspace @vue-skuilder/e2e-db lint:check
50+
51+
- name: Lint frontend packages
52+
run: |
53+
echo "Linting @vue-skuilder/common-ui..."
54+
yarn workspace @vue-skuilder/common-ui lint:check
55+
56+
echo "Linting @vue-skuilder/platform-ui..."
57+
yarn workspace @vue-skuilder/platform-ui lint:check
58+
59+
echo "Linting @vue-skuilder/studio-ui..."
60+
yarn workspace @vue-skuilder/studio-ui lint:check
61+
62+
- name: Linting completed
63+
run: |
64+
echo "✅ All linting checks passed"
65+
echo "📦 Packages checked:"
66+
echo " Backend: common, db, express, cli, e2e-db"
67+
echo " Frontend: common-ui, platform-ui, studio-ui"

0 commit comments

Comments
 (0)