十月/十一月累积更新 #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 在主分支上构建 | |
name: lint | |
on: | |
pull_request: # PR 触发 | |
branches: | |
- next | |
jobs: | |
lint: | |
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 |