mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-07-25 04:45:45 +00:00
Split GH actions (#222)
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: Node CI
|
name: CI
|
||||||
|
on: push
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
name: Linting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -16,10 +16,11 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: lint
|
- name: lint
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install --frozen-lockfile
|
||||||
yarn lint
|
yarn lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
name: Testing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -32,10 +33,11 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install --frozen-lockfile
|
||||||
yarn test
|
yarn test
|
||||||
|
|
||||||
build:
|
build_code:
|
||||||
|
name: Build Code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -48,7 +50,22 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install --frozen-lockfile
|
||||||
yarn build
|
yarn build:split:code
|
||||||
env:
|
|
||||||
CI: true
|
build_docs:
|
||||||
|
name: Build Docs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: build
|
||||||
|
run: |
|
||||||
|
yarn install --frozen-lockfile
|
||||||
|
yarn build:split:docs
|
||||||
+3
-3
@@ -13,9 +13,9 @@
|
|||||||
"typescript": "^3.6.3"
|
"typescript": "^3.6.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn build:ts && yarn build:docs",
|
"build": "yarn build:split:code && yarn build:split:docs",
|
||||||
"build:docs": "polkadot-dev-build-docs",
|
"build:split:code": "polkadot-dev-build-ts",
|
||||||
"build:ts": "polkadot-dev-build-ts",
|
"build:split:docs": "polkadot-dev-build-docs",
|
||||||
"check": "yarn lint",
|
"check": "yarn lint",
|
||||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
|
||||||
"clean": "polkadot-dev-clean-build",
|
"clean": "polkadot-dev-clean-build",
|
||||||
|
|||||||
Reference in New Issue
Block a user