Skip to content

Commit

Permalink
[nl]CI 流程优化
Browse files Browse the repository at this point in the history
👷 给 pr 增加了 lint action
[skip ci]
  • Loading branch information
Stapxs committed Jul 19, 2024
1 parent e3e0b4c commit 1f924e7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ jobs:
fi
# 获取版本号
echo VERSION=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
# 设置 Node.js 版本
- name: Load Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
# 更新依赖
- name: Install
run: yarn
# 代码检查
- name: Lint
run: yarn lint
# ========================= 构建 Web 版本 =========================
build-pages:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 在主分支上构建
name: lint
on:
pull_request: # PR 触发
branches:
- next

jobs:
init:
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
# 设置 Node.js 版本
- name: Load Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
# 更新依赖
- name: Install
run: yarn
# 代码检查
- name: Lint
run: yarn lint

0 comments on commit 1f924e7

Please sign in to comment.