mirror of https://github.com/halo-dev/halo-admin
parent
9815a30744
commit
d961e90d47
|
@ -21,7 +21,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x, 15.x, 16.x]
|
node-version: [14.x, 16.x]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -36,8 +36,14 @@ jobs:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- run: pnpm install
|
- name: Install dependencies
|
||||||
- run: pnpm lint
|
run: pnpm install
|
||||||
|
- name: Run code lint check
|
||||||
|
run: pnpm lint
|
||||||
|
- name: Run unit test
|
||||||
|
run: pnpm test:unit
|
||||||
|
- name: Run typescript type check
|
||||||
|
run: pnpm typecheck
|
||||||
|
|
||||||
github-release:
|
github-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -45,10 +51,10 @@ jobs:
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js 14
|
- name: Use Node.js 16
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
- name: Install pnpm package manager
|
- name: Install pnpm package manager
|
||||||
run: npm install -g pnpm
|
run: npm install -g pnpm
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
|
|
Loading…
Reference in New Issue