mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-09 19:01:04 +00:00
Swap CI to GH actions (#227)
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
branches:
|
||||
ignore:
|
||||
- gh-pages
|
||||
working_directory: ~/polkadot-js
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: install-apt
|
||||
command: sudo apt-get install libusb-1.0.0
|
||||
- run:
|
||||
name: install-deps
|
||||
command: yarn install --frozen-lockfile
|
||||
- save_cache:
|
||||
key: dependency-cache-{{ checksum "yarn.lock" }}
|
||||
paths:
|
||||
- ./node_modules
|
||||
- ~/.cache/yarn
|
||||
- run:
|
||||
name: build
|
||||
command: yarn polkadot-dev-circleci-build
|
||||
@@ -32,9 +32,15 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: test
|
||||
env:
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
run: |
|
||||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
chmod +x ./cc-test-reporter
|
||||
yarn install --frozen-lockfile
|
||||
./cc-test-reporter before-build
|
||||
yarn test
|
||||
./cc-test-reporter after-build --exit-code 0
|
||||
|
||||
build_code:
|
||||
name: Build Code
|
||||
|
||||
@@ -19,6 +19,14 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: build
|
||||
env:
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
GH_PAT: ${{ secrets.GH_PAT }}
|
||||
GH_TOKEN: ${{ secrets.GH_PAT }}
|
||||
GH_PAGES_SRC: build-docs
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
yarn build
|
||||
yarn polkadot-dev-ghact-build
|
||||
yarn polkadot-dev-ghact-deploy
|
||||
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "10"
|
||||
env:
|
||||
global:
|
||||
- CC_TEST_REPORTER_ID=8317dd42c8674d0f3094dda84c022abced4d0bf632b53406afd239ec4b039db2
|
||||
- GH_PAGES_SRC="build-docs"
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
- node_modules
|
||||
before_install:
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
- chmod +x ./cc-test-reporter
|
||||
- export PATH=$HOME/.yarn/bin:$PATH
|
||||
before_script:
|
||||
- ./cc-test-reporter before-build
|
||||
script:
|
||||
- yarn polkadot-dev-travis-build
|
||||
after_script:
|
||||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
||||
deploy:
|
||||
skip_cleanup: true
|
||||
provider: script
|
||||
script: yarn polkadot-dev-travis-deploy
|
||||
on:
|
||||
branch: master
|
||||
+2
-2
@@ -30,8 +30,8 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.6.2",
|
||||
"@babel/runtime": "^7.6.2",
|
||||
"@polkadot/dev-react": "^0.32.0-beta.5",
|
||||
"@polkadot/ts": "^0.1.79",
|
||||
"@polkadot/dev-react": "^0.32.0-beta.7",
|
||||
"@polkadot/ts": "^0.1.80",
|
||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||
"empty": "^0.10.1",
|
||||
"gh-pages": "^2.1.1",
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.5.1",
|
||||
"@polkadot/types": "^0.95.0-beta.1",
|
||||
"@polkadot/types": "^0.95.0-beta.4",
|
||||
"@polkadot/util": "^1.5.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
||||
@@ -2052,15 +2052,15 @@
|
||||
once "^1.4.0"
|
||||
universal-user-agent "^4.0.0"
|
||||
|
||||
"@polkadot/dev-react@^0.32.0-beta.5":
|
||||
version "0.32.0-beta.5"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/dev-react/-/dev-react-0.32.0-beta.5.tgz#faa6d40f0aac7a3fe18e9a81af0da6005f98fb69"
|
||||
integrity sha512-wfA76zM7TfGP7NiWiXQ7Rzw0bEEv5DPWLKGbcTdkS8S76Q6rvdtWeumWTdXTogUz+pDG66npgfTntOEPzAIIXQ==
|
||||
"@polkadot/dev-react@^0.32.0-beta.7":
|
||||
version "0.32.0-beta.7"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/dev-react/-/dev-react-0.32.0-beta.7.tgz#03b97781761efb5733bcdb1b3ba56818ca6feed3"
|
||||
integrity sha512-bZF4YF5xnvQOOAfnds0/vFM4Rcf9IQbf+qEhaRPZ+fbtzIPMCi0mMnEB7Lid0P7+LVEm7WeVuuqM4ZniAtKQsQ==
|
||||
dependencies:
|
||||
"@babel/core" "^7.6.2"
|
||||
"@babel/plugin-syntax-dynamic-import" "^7.2.0"
|
||||
"@babel/preset-react" "^7.0.0"
|
||||
"@polkadot/dev" "^0.32.0-beta.5"
|
||||
"@polkadot/dev" "^0.32.0-beta.7"
|
||||
"@types/react" "^16.9.5"
|
||||
"@types/react-dom" "^16.9.1"
|
||||
"@types/styled-components" "4.1.8"
|
||||
@@ -2088,10 +2088,10 @@
|
||||
webpack-plugin-serve "^0.12.1"
|
||||
worker-loader "^2.0.0"
|
||||
|
||||
"@polkadot/dev@^0.32.0-beta.5":
|
||||
version "0.32.0-beta.5"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.32.0-beta.5.tgz#79520cee917069000361fabd2138c52e84d12697"
|
||||
integrity sha512-iZYPbJCB8tbeRH1B052HxVDfHdW84aX4p89RNi0k40dUlOZBXyPAztgysiT9N3xORaY7kqHP8Gg1y9HW48WX3A==
|
||||
"@polkadot/dev@^0.32.0-beta.7":
|
||||
version "0.32.0-beta.7"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.32.0-beta.7.tgz#2b191937d3bfb5139e705bfb342654b992184ada"
|
||||
integrity sha512-HUf2+5e55zKQHf4aW7HGLlSgiYTSCWv3suBbeg96TiEZ4mVlDVPxEj1G6yGvohD9MSGTXrO3mFffcj7R2w+33Q==
|
||||
dependencies:
|
||||
"@babel/cli" "^7.6.2"
|
||||
"@babel/core" "^7.6.2"
|
||||
@@ -2142,17 +2142,17 @@
|
||||
"@polkadot/util" "^1.5.1"
|
||||
"@polkadot/util-crypto" "^1.5.1"
|
||||
|
||||
"@polkadot/ts@^0.1.79":
|
||||
version "0.1.79"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.79.tgz#dad8db6d1d01b6d455f0b59076b738372440eba9"
|
||||
integrity sha512-abedOpWU6N96e3rAP8nqMLlwkXmpku2yiqDWABZbDoQKuuQasSxbOPitUfknYgODMKfm2TMYJsKd0NAbdwQj6Q==
|
||||
"@polkadot/ts@^0.1.80":
|
||||
version "0.1.80"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.80.tgz#6c8acc72e453993e22c9ced53c1b5913650b97b9"
|
||||
integrity sha512-/8Dpku/ZeyWIQicz4p/4yblNKavDvPcSVbFMfPLfSLtZBSHTW5XytIwZWxrwB3Y+zoGf8bzNLBSSxk+EDJhXJg==
|
||||
dependencies:
|
||||
"@types/chrome" "^0.0.89"
|
||||
|
||||
"@polkadot/types@^0.95.0-beta.1":
|
||||
version "0.95.0-beta.1"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.95.0-beta.1.tgz#89a587a4b14d7cc90e305c433a2b476a2512e3db"
|
||||
integrity sha512-wJV1FMZ2urZzbORv8FPo96bgK76UaJMtpmtepmyn2qYAiB2iP2SBtRJuN9cKq5KLyMDAUFKfUpZaUCEcRod+vg==
|
||||
"@polkadot/types@^0.95.0-beta.4":
|
||||
version "0.95.0-beta.4"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.95.0-beta.4.tgz#6b76b7279ef5cfc76f5b0e92c6bc7621284062be"
|
||||
integrity sha512-7shfmJeZBtnMEnEDhPupBGOkR5RMxat2AAV1zbjh/qC4U3Iimji4F9YNCBm/WwFw0NuppTKfFl4wqc4X7c8/vQ==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.6.2"
|
||||
"@polkadot/util" "^1.5.1"
|
||||
|
||||
Reference in New Issue
Block a user