Swap CI to GH actions (#477)

This commit is contained in:
Jaco Greeff
2019-10-09 14:08:27 +02:00
committed by GitHub
parent 1a436906f5
commit c5bc09fde7
6 changed files with 24 additions and 60 deletions
-21
View File
@@ -1,21 +0,0 @@
version: 2
jobs:
build:
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
+6
View File
@@ -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
+8 -1
View File
@@ -18,6 +18,13 @@ 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_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
View File
@@ -1,28 +0,0 @@
language: node_js
node_js:
- "10"
env:
global:
- CC_TEST_REPORTER_ID=27a299582eb7fd9580e27897a6ecda1c82a1cd24bcfe2f2ebda1ca70238509b4
- 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
View File
@@ -24,8 +24,8 @@
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@polkadot/dev": "^0.32.0-beta.4",
"@polkadot/ts": "^0.1.78",
"@polkadot/dev": "^0.32.0-beta.6",
"@polkadot/ts": "^0.1.80",
"gh-pages": "^2.1.1"
}
}
+8 -8
View File
@@ -1777,10 +1777,10 @@
once "^1.4.0"
universal-user-agent "^4.0.0"
"@polkadot/dev@^0.32.0-beta.4":
version "0.32.0-beta.4"
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.32.0-beta.4.tgz#dee47a0490fcb6d97603396227a20e5c50ee1557"
integrity sha512-IDWrG5q7VxH5ObR6xRdATj6BzNxrbIzgRmVy3FClVaBTwp0E/FAiDveeG1bJwVIco/xpLCA649Gl1aYmSZgIHQ==
"@polkadot/dev@^0.32.0-beta.6":
version "0.32.0-beta.6"
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.32.0-beta.6.tgz#e013431e24eefcff6374f12cad6d0b8aee3e8a97"
integrity sha512-GlDmiN99+EvxctoL0TD3Raqfuz9eaOGTbS2Nt/4vQfy7nmLGNdQHU45lIkQag/kdQow5tMsUueaQbARcKcplYw==
dependencies:
"@babel/cli" "^7.6.2"
"@babel/core" "^7.6.2"
@@ -1822,10 +1822,10 @@
typescript "^3.6.3"
vuepress "^1.1.0"
"@polkadot/ts@^0.1.78":
version "0.1.78"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.78.tgz#a1d9db08508c1c7c5e12a07370f9e58b4e9d8a78"
integrity sha512-kBzMYqS5u9fVfrCwO8JmJ0jGCKIqDu27U+o9FoBh0rfTf4pebfse9QV/ed8B0Tu8dvU98LlXpZeXhbp8krJIjA==
"@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"