Skip to content

Commit

Permalink
chore: migrate to yarn 2 (berry) (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed May 20, 2020
1 parent 1e18667 commit bb63d73
Show file tree
Hide file tree
Showing 920 changed files with 29,574 additions and 82 deletions.
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

0 comments on commit bb63d73

Please sign in to comment.