Skip to content

Commit 0989113

Browse files
committed
feat: add github ci and build workflows
1 parent 6c2b48f commit 0989113

File tree

3 files changed

+125
-1
lines changed

3 files changed

+125
-1
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- synchronize
7+
branches:
8+
- master
9+
push:
10+
branches:
11+
- master
12+
13+
env:
14+
HUSKY: '0'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
post-update:
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
matrix:
28+
os:
29+
- ubuntu-latest
30+
# - macos-latest
31+
- windows-latest
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
38+
- name: Setup pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 10
42+
run_install: true
43+
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: 22
48+
cache: pnpm
49+
50+
- name: Build
51+
run: |
52+
pnpm build:antd

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os:
19+
- ubuntu-latest
20+
# - macos-latest
21+
- windows-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: 10
33+
run_install: true
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 22
39+
cache: pnpm
40+
41+
- name: Lint
42+
run: pnpm run lint
43+
44+
check:
45+
name: Check
46+
runs-on: ${{ matrix.os }}
47+
timeout-minutes: 20
48+
strategy:
49+
matrix:
50+
os:
51+
- ubuntu-latest
52+
# - macos-latest
53+
- windows-latest
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
with:
58+
fetch-depth: 0
59+
60+
- name: Setup pnpm
61+
uses: pnpm/action-setup@v4
62+
with:
63+
version: 10
64+
run_install: true
65+
66+
- name: Setup Node.js
67+
uses: actions/setup-node@v4
68+
with:
69+
node-version: 22
70+
cache: pnpm
71+
72+
- name: Typecheck
73+
run: pnpm check:type

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ vite.config.ts.*
5353
# 升级 vben 时需要删除的文件
5454
.vscode
5555
.changeset
56-
.github
5756
backend-mock
5857
web-ele
5958
web-naive

0 commit comments

Comments
 (0)