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:
Sepush 2023-08-28 03:55:46 +08:00 committed by GitHub
parent bd995ab266
commit 2167367d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}