feat: 添加点名时的背景设置 #13
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: 代码质量测试 | |
on: | |
push: | |
branches-ignore: | |
- latest | |
jobs: | |
lint: | |
name: 代码风格检查 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- uses: pnpm/action-setup@v3 | |
with: | |
run_install: true | |
- name: 运行代码风格检查 | |
run: pnpm lint | |
unit-test: | |
name: 单元测试 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- uses: pnpm/action-setup@v3 | |
with: | |
run_install: true | |
- name: 运行单元测试 | |
run: pnpm test |