-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (30 loc) · 816 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (30 loc) · 816 Bytes
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
name: 持续集成
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
ci:
name: 检查、测试和构建
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- uses: pnpm/action-setup@v4
with:
version: 11.1.1
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
cache-dependency-path: theme/pnpm-lock.yaml
- name: 安装主题包依赖
working-directory: theme
run: pnpm install --frozen-lockfile
- name: 安装 golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
- name: 运行 CI 检查
run: make ci