Skip to content

Commit

Permalink
ci: separate lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 27, 2023
1 parent 96315ed commit 70b47bd
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ on:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
name: Install pnpm

- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install deps
run: pnpm i --frozen-lockfile

- name: Lint
run: pnpm lint

test:
strategy:
matrix:
Expand All @@ -30,8 +50,5 @@ jobs:
- name: Install deps
run: pnpm i --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build

0 comments on commit 70b47bd

Please sign in to comment.