Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to yarn 2 (berry) #76

Merged
merged 4 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
82 changes: 41 additions & 41 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
name: Test

on:
push:
branches:
- "master"
- "develop"
pull_request:
types: [ready_for_review, synchronize, opened]
push:
branches:
- "master"
- "develop"
pull_request:
types: [ready_for_review, synchronize, opened]

jobs:
unit:
runs-on: ubuntu-latest
unit:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v1
steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: yarn install --frozen-lockfile
- name: Install
run: yarn install --immutable --immutable-cache

- name: Build
run: yarn build
- name: Build
run: yarn build

- name: Test
run: yarn test --coverage
- name: Test
run: yarn test --coverage

- name: Codecov
run: ./node_modules/.bin/codecov --token=${{ secrets.CODECOV_TOKEN }}
- name: Codecov
run: yarn coverage:report --token=${{ secrets.CODECOV_TOKEN }}

benchmark:
needs: unit
benchmark:
needs: unit

runs-on: ubuntu-latest
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v1
steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: yarn install --frozen-lockfile
- name: Install
run: yarn install --immutable --immutable-cache

- name: Benchmark
run: yarn bench
- name: Benchmark
run: yarn bench
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ docs
# Optional npm cache directory
.npm
package-lock.json
yarn.lock

# Mac OS X local settings
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"src/*.ts": ["yarn lint", "prettier --write", "git add"],
"*.{json,md}": ["prettier --write", "git add"]
"src/*.ts": ["yarn lint", "prettier --write"],
"*.{json,md}": ["prettier --write"]
}
Loading