Swap to yarn 2 (#2310)

* Swap to yarn 2

* Run jest via dev command
This commit is contained in:
Jaco Greeff 2020-02-28 15:02:32 +01:00 committed by GitHub
parent 864c3454b5
commit c20732a18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 93333 additions and 16448 deletions

View File

@ -26,7 +26,7 @@ jobs:
${{ runner.os }}-yarn-
- name: lint
run: |
yarn install --frozen-lockfile
yarn install | grep -v 'YN0013'
yarn lint
test:
@ -53,7 +53,7 @@ jobs:
${{ runner.os }}-yarn-
- name: test
run: |
yarn install --frozen-lockfile
yarn install | grep -v 'YN0013'
yarn test
build_code:
@ -80,7 +80,7 @@ jobs:
${{ runner.os }}-yarn-
- name: build
run: |
yarn install --frozen-lockfile
yarn install | grep -v 'YN0013'
yarn build:code
build_i18n:
@ -107,5 +107,5 @@ jobs:
${{ runner.os }}-yarn-
- name: build
run: |
yarn install --frozen-lockfile
yarn install | grep -v 'YN0013'
yarn build:i18n

View File

@ -37,7 +37,7 @@ jobs:
GH_PAT: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install --frozen-lockfile
yarn install | grep -v 'YN0013'
yarn polkadot-ci-ghact-build
yarn polkadot-ci-ghact-docs

4
.gitignore vendored
View File

@ -8,6 +8,10 @@ tmp/
.env.test.local
.env.production.local
.npmrc
.yarn/*
!.yarn/releases
!.yarn/plugins
.pnp.*
cc-test-reporter
package-lock.json
npm-debug.log*

File diff suppressed because one or more lines are too long

34806
.yarn/plugins/@yarnpkg/plugin-version.js vendored Normal file

File diff suppressed because one or more lines are too long

58
.yarn/releases/yarn-berry.js vendored Executable file

File diff suppressed because one or more lines are too long

12
.yarnrc.yml Normal file
View File

@ -0,0 +1,12 @@
enableImmutableInstalls: false
enableProgressBars: false
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.js
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.js
spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: .yarn/releases/yarn-berry.js

View File

@ -31,7 +31,7 @@
"clean:i18n": "rm -rf packages/apps/public/locales/en && mkdir -p packages/apps/public/locales/en",
"lint": "polkadot-dev-run-lint",
"postinstall": "polkadot-dev-yarn-only",
"test": "jest packages/app-claims/src",
"test": "polkadot-dev-run-test packages/app-claims/src",
"vanitygen": "node packages/app-accounts/scripts/vanitygen.js",
"start": "cd packages/apps && webpack --config webpack.config.js"
},
@ -39,8 +39,8 @@
"@babel/core": "^7.8.4",
"@babel/register": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/dev": "^0.50.4",
"@polkadot/ts": "^0.2.3",
"@polkadot/dev": "^0.50.9",
"@polkadot/ts": "^0.3.1",
"@polkadot/typegen": "^1.5.0-beta.12",
"@types/bn.js": "^4.11.6",
"@types/chart.js": "^2.9.11",

38245
yarn.lock

File diff suppressed because it is too large Load Diff