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 29, 2021
1 parent c2fd84e commit 0d47b91
Show file tree
Hide file tree
Showing 5 changed files with 4,204 additions and 3,885 deletions.
69 changes: 60 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,93 @@ on:
pull_request:
jobs:
full:
name: Node.js 16 Full
name: Node.js 17 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
node-version: 17
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: yarn test
run: pnpm test
env:
FORCE_COLOR: 2
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16
- 14
- 12
- 10
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: latest
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
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
name: Node.js 10 Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
version: 3
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install Node.js 10
uses: actions/setup-node@v2
with:
node-version: 10
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
env:
FORCE_COLOR: 2
windows:
runs-on: windows-latest
name: Windows Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js LTS
uses: actions/setup-node@v2
with:
node-version: 16
cache: pnpm
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: npx jest
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,4 +1,3 @@
node_modules/
yarn-error.log

coverage/
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
yarn-error.log
yarn.lock
pnpm-lock.yaml

.editorconfig
test/
coverage/
.travis.yml

.github/
logo.svg
Expand Down
Loading

0 comments on commit 0d47b91

Please sign in to comment.