Skip to content

Commit

Permalink
Move from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 12, 2021
1 parent 9819276 commit ec80417
Show file tree
Hide file tree
Showing 6 changed files with 2,378 additions and 2,192 deletions.
57 changes: 46 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6.23.6
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 17
cache: yarn
cache: pnpm
- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Run tests
run: yarn test
run: pnpm test
env:
FORCE_COLOR: 2
short:
Expand All @@ -28,38 +32,69 @@ jobs:
- 16
- 14
- 12
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6.23.6
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
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:
- 10
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
version: 3.8.1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install dependencies
run: yarn --frozen-lockfile --ignore-engines
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: yarn unit
run: pnpm unit
env:
FORCE_COLOR: 2
windows:
runs-on: windows-latest
name: Windows Quick
env:
YARN_GPG: 'no'
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6.23.6
- name: Install Node.js LTS
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: yarn unit
run: pnpm unit
env:
FORCE_COLOR: 2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
yarn-error.log

coverage/

Expand Down
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules/
yarn-error.log
yarn.lock
pnpm-lock.yaml

.editorconfig
coverage/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"transpiler"
],
"scripts": {
"test": "c8 yarn unit && eslint . && node ./test/version.js && check-dts && node ./test/integration.js && size-limit",
"test": "c8 pnpm unit && eslint . && node ./test/version.js && check-dts && node ./test/integration.js && size-limit",
"unit": "uvu -r ts-node/register/transpile-only test \"\\.test\\.(ts|js)$\""
},
"funding": {
Expand Down
Loading

0 comments on commit ec80417

Please sign in to comment.