Skip to content

Commit 6bdb970

Browse files
Copilothotlong
andcommitted
chore: move CI lint to manual workflow_dispatch
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 164b3c0 commit 6bdb970

2 files changed

Lines changed: 43 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,6 @@ jobs:
4040
fail_ci_if_error: false
4141
token: ${{ secrets.CODECOV_TOKEN }}
4242

43-
lint:
44-
name: Lint
45-
runs-on: ubuntu-latest
46-
47-
steps:
48-
- name: Checkout code
49-
uses: actions/checkout@v6
50-
51-
- name: Setup pnpm
52-
uses: pnpm/action-setup@v4
53-
54-
- name: Setup Node.js
55-
uses: actions/setup-node@v6
56-
with:
57-
node-version: '20.x'
58-
cache: 'pnpm'
59-
60-
- name: Turbo Cache
61-
uses: actions/cache@v5
62-
with:
63-
path: node_modules/.cache/turbo
64-
key: turbo-${{ runner.os }}-${{ github.sha }}
65-
restore-keys: |
66-
turbo-${{ runner.os }}-
67-
68-
- name: Install dependencies
69-
run: pnpm install --frozen-lockfile
70-
71-
- name: Run linter
72-
run: pnpm lint
73-
7443
build:
7544
name: Build Core
7645
runs-on: ubuntu-latest

.github/workflows/lint.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Lint
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: lint-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
lint:
15+
name: Lint
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v6
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v6
27+
with:
28+
node-version: '20.x'
29+
cache: 'pnpm'
30+
31+
- name: Turbo Cache
32+
uses: actions/cache@v5
33+
with:
34+
path: node_modules/.cache/turbo
35+
key: turbo-${{ runner.os }}-${{ github.sha }}
36+
restore-keys: |
37+
turbo-${{ runner.os }}-
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile
41+
42+
- name: Run linter
43+
run: pnpm lint

0 commit comments

Comments
 (0)