Swap CI to GH actions (#1460)
This commit is contained in:
@@ -1,24 +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-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:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: test
|
- name: test
|
||||||
|
env:
|
||||||
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
run: |
|
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
|
yarn install --frozen-lockfile
|
||||||
|
./cc-test-reporter before-build
|
||||||
yarn test
|
yarn test
|
||||||
|
./cc-test-reporter after-build --exit-code 0
|
||||||
|
|
||||||
build_code:
|
build_code:
|
||||||
name: Build Code
|
name: Build Code
|
||||||
|
|||||||
@@ -19,6 +19,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: build
|
- name: build
|
||||||
|
env:
|
||||||
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
|
GH_PAT: ${{ secrets.GH_PAT }}
|
||||||
|
GH_PAGES_SRC: build-docs
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
yarn install --frozen-lockfile
|
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=b8983d04997f43ff9b9df9aa92904967547680e2a229af812b3cf14985713e84
|
|
||||||
- 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::$(yarn global 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
@@ -35,8 +35,8 @@
|
|||||||
"@babel/core": "^7.6.2",
|
"@babel/core": "^7.6.2",
|
||||||
"@babel/register": "^7.6.2",
|
"@babel/register": "^7.6.2",
|
||||||
"@babel/runtime": "^7.6.2",
|
"@babel/runtime": "^7.6.2",
|
||||||
"@polkadot/dev": "^0.32.0-beta.4",
|
"@polkadot/dev": "^0.32.0-beta.6",
|
||||||
"@polkadot/ts": "^0.1.78",
|
"@polkadot/ts": "^0.1.80",
|
||||||
"gh-pages": "^2.1.1"
|
"gh-pages": "^2.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1777,10 +1777,10 @@
|
|||||||
once "^1.4.0"
|
once "^1.4.0"
|
||||||
universal-user-agent "^4.0.0"
|
universal-user-agent "^4.0.0"
|
||||||
|
|
||||||
"@polkadot/dev@^0.32.0-beta.4":
|
"@polkadot/dev@^0.32.0-beta.6":
|
||||||
version "0.32.0-beta.4"
|
version "0.32.0-beta.6"
|
||||||
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.32.0-beta.4.tgz#dee47a0490fcb6d97603396227a20e5c50ee1557"
|
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.32.0-beta.6.tgz#e013431e24eefcff6374f12cad6d0b8aee3e8a97"
|
||||||
integrity sha512-IDWrG5q7VxH5ObR6xRdATj6BzNxrbIzgRmVy3FClVaBTwp0E/FAiDveeG1bJwVIco/xpLCA649Gl1aYmSZgIHQ==
|
integrity sha512-GlDmiN99+EvxctoL0TD3Raqfuz9eaOGTbS2Nt/4vQfy7nmLGNdQHU45lIkQag/kdQow5tMsUueaQbARcKcplYw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/cli" "^7.6.2"
|
"@babel/cli" "^7.6.2"
|
||||||
"@babel/core" "^7.6.2"
|
"@babel/core" "^7.6.2"
|
||||||
@@ -1831,10 +1831,10 @@
|
|||||||
"@polkadot/util" "^1.5.1"
|
"@polkadot/util" "^1.5.1"
|
||||||
"@polkadot/util-crypto" "^1.5.1"
|
"@polkadot/util-crypto" "^1.5.1"
|
||||||
|
|
||||||
"@polkadot/ts@^0.1.78":
|
"@polkadot/ts@^0.1.80":
|
||||||
version "0.1.78"
|
version "0.1.80"
|
||||||
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.78.tgz#a1d9db08508c1c7c5e12a07370f9e58b4e9d8a78"
|
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.80.tgz#6c8acc72e453993e22c9ced53c1b5913650b97b9"
|
||||||
integrity sha512-kBzMYqS5u9fVfrCwO8JmJ0jGCKIqDu27U+o9FoBh0rfTf4pebfse9QV/ed8B0Tu8dvU98LlXpZeXhbp8krJIjA==
|
integrity sha512-/8Dpku/ZeyWIQicz4p/4yblNKavDvPcSVbFMfPLfSLtZBSHTW5XytIwZWxrwB3Y+zoGf8bzNLBSSxk+EDJhXJg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/chrome" "^0.0.89"
|
"@types/chrome" "^0.0.89"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user