Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #866 from ArkEcosystem/develop
Browse files Browse the repository at this point in the history
chore: merge develop into master
  • Loading branch information
ItsANameToo authored Feb 11, 2020
2 parents dc0d314 + a8fb7ad commit 3c055f8
Show file tree
Hide file tree
Showing 362 changed files with 11,962 additions and 4,842 deletions.
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
/config/
/dist/
/*.js
/node_modules/**
/__tests__/unit/coverage/
/__tests__/**/*.spec.ts
47 changes: 29 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint",
sourceType: "module",
},
env: {
browser: true,
node: true,
},
extends: ["plugin:vue/recommended", "standard", "plugin:cypress/recommended"],
globals: {
GIT_DATE: true,
GIT_VERSION: true,
node: true
},
plugins: ["@typescript-eslint", "prettier", "vue"],

extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended",
"@vue/typescript",
"@vue/prettier",
"prettier/@typescript-eslint"
],
rules: {
// allow paren-less arrow functions
"arrow-parens": 0,
// allow async-await
"generator-star-spacing": 0,
// allow debugger during development
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
"vue/component-name-in-template-casing": ["warn", "PascalCase", {}],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-case-declarations": "off",
"prefer-spread": "off",
"no-fallthrough": "off",
"getter-return": "off",
"comma-dangle": ["error", "always-multiline"],
},
parserOptions: {
parser: "@typescript-eslint/parser"
}
};
113 changes: 113 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Test & Deploy

on:
push:
branches:
- "master"

jobs:
e2e:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- 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: Build
run: yarn build

- name: Test
run: yarn test:e2e:ci

unit:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- 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: Build
run: yarn build

- name: Test
run: yarn test:unit

deploy:
needs: [e2e, unit]

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- 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: Deploy
run: yarn task:deploy:workflow
env:
GH_PAGES_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Format

on:
pull_request:
types: [ready_for_review, synchronize, opened]

jobs:
eslint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- 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: Run eslint
run: yarn lint

- uses: stefanzweifel/[email protected]
with:
commit_message: "style: resolve style guide violations"
commit_options: "--no-verify"
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Loading

0 comments on commit 3c055f8

Please sign in to comment.