Skip to content

Commit

Permalink
Move to pnpm 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 6, 2023
1 parent d96f392 commit 37b25df
Show file tree
Hide file tree
Showing 2 changed files with 525 additions and 493 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
full:
name: Node.js Latest Full
Expand All @@ -14,33 +16,32 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 21
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: pnpm test
env:
FORCE_COLOR: 2
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
- 18
- 16
- 14
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
version: 8
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -50,13 +51,12 @@ jobs:
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
env:
FORCE_COLOR: 2
old:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 12
- 10
name: Node.js ${{ matrix.node-version }} Quick
Expand All @@ -74,11 +74,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
run: pnpm install --no-frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
env:
FORCE_COLOR: 2
benchmark:
name: Benchmark
runs-on: ubuntu-latest
Expand All @@ -88,7 +86,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down
Loading

0 comments on commit 37b25df

Please sign in to comment.