mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
chore(ci): parallel (#5183)
* chore: ci Signed-off-by: Sepush <sepush@outlook.com> * chore: major version Signed-off-by: Sepush <sepush@outlook.com> * chore: use corepack Signed-off-by: Sepush <sepush@outlook.com> --------- Signed-off-by: Sepush <sepush@outlook.com>
This commit is contained in:
parent
bd995ab266
commit
2167367d22
35
.github/workflows/node.js.yml
vendored
35
.github/workflows/node.js.yml
vendored
@ -10,23 +10,20 @@ on:
|
||||
branches: [ main, feat, docs ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
lint:
|
||||
environment: test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x, 18.15]
|
||||
node-version: [16.x, 18]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: latest
|
||||
run: corepack enable
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
@ -38,11 +35,33 @@ jobs:
|
||||
- name: Lint
|
||||
run: pnpm run lint
|
||||
|
||||
|
||||
|
||||
test:
|
||||
environment: test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x, 18]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- run: pnpm install
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test:cov
|
||||
|
||||
- name: Code coverage
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
Loading…
Reference in New Issue
Block a user