chore: 改进 CI 配置
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: ESLint
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -9,7 +9,7 @@ on:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
test:
|
||||
install-lint-build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -26,9 +26,16 @@ jobs:
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: |
|
||||
set -o pipefail
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
- name: ESLint
|
||||
- name: Run Prettier check
|
||||
run: |
|
||||
set -o pipefail
|
||||
pnpm format:check
|
||||
|
||||
- name: Run ESLint check
|
||||
run: |
|
||||
set -o pipefail
|
||||
pnpm lint:check
|
||||
Reference in New Issue
Block a user