Skip to content

Commit

Permalink
ci: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Mar 2, 2024
1 parent a379097 commit 1c0e539
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
uses: pnpm/action-setup@v2

- name: 设置 Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm

- name: 项目安装依赖
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 测试
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 拉取代码
uses: actions/checkout@v4

- name: 安装 pnpm
uses: pnpm/action-setup@v2

- name: 设置 Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: 项目安装依赖
run: pnpm install --no-frozen-lockfile

- name: 测试构建
run: pnpm build

- name: 测试 Linter
run: pnpm lint

0 comments on commit 1c0e539

Please sign in to comment.