Skip to content

Commit

Permalink
chore(ci): parallel (#5183)
Browse files Browse the repository at this point in the history
* chore: ci

Signed-off-by: Sepush <[email protected]>

* chore: major version

Signed-off-by: Sepush <[email protected]>

* chore: use corepack

Signed-off-by: Sepush <[email protected]>

---------

Signed-off-by: Sepush <[email protected]>
  • Loading branch information
Sepush authored Aug 27, 2023
1 parent bd995ab commit 2167367
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 2167367

Please sign in to comment.