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 7, 2021
1 parent 92a1a0a commit 6d0c552
Show file tree
Hide file tree
Showing 7 changed files with 1,986 additions and 1,854 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -9,17 +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
- name: Install pnpm
run: yarn global add pnpm
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Run tests
run: yarn test
run: pnpm test
env:
FORCE_COLOR: 2
short:
Expand All @@ -30,20 +32,49 @@ 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:fast
env:
FORCE_COLOR: 2
old:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 10
- 8
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 install --frozen-lockfile --ignore-engines --ignore-scripts
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: yarn unit:fast
run: pnpm unit:fast
env:
FORCE_COLOR: 2
3 changes: 0 additions & 3 deletions .gitignore
@@ -1,6 +1,3 @@
node_modules/
.yarn/
npm-debug.log
yarn-error.log

coverage/
3 changes: 1 addition & 2 deletions .npmignore
@@ -1,6 +1,5 @@
node_modules/
yarn-error.log
yarn.lock
pnpm-lock.yaml

.editorconfig
test/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"repository": "browserslist/browserslist",
"scripts": {
"test": "c8 yarn unit && eslint . && size-limit",
"test": "c8 pnpm unit && eslint . && size-limit",
"unit": "NODE_ENV=test uvu test .test.js",
"unit:fast": "NODE_ENV=test uvu test '^[^/]+.test.js'"
},
Expand Down

0 comments on commit 6d0c552

Please sign in to comment.